1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#include <allegro.h>
int main (void){
int ret;
allegro_init();
install_keyboard();
ret = set_gfx_mode(GFX_AUTODETECT_WINDOWED, 640, 480, 0, 0);
if (ret!=0)
{
allegro_message(allegro_error);
return 1;
}
textprintf(screen, font, 0, 0, makecol(255,255, 255), "%dx%d", SCREEN_W, SCREEN_H);
while(!key[KEY_ESC])
allegro_exit();
return 0;
}
END_OF_MAIN()
|