Re: [AD] Allegro 4.1.6/Allegro 4.0.3

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> The patch is attached.

Commited.

The following program works again as expected:

#include <stdio.h>
#include <allegro.h>

void my_callback(void)
{
   printf("Close button pressed.\n");
}

int main(void)
{
   allegro_init();
   install_keyboard();

   set_window_close_button(TRUE);
   set_window_close_hook(my_callback);

   if (set_gfx_mode(GFX_AUTODETECT_WINDOWED, 640, 480, 0, 0) != 0)
      return -1;

   clear_to_color(screen, makecol(255, 0, 0));

   readkey();

   return 0;
}
END_OF_MAIN()


-- 
Eric Botcazou



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/