#include void setup_screen() { if (set_gfx_mode(GFX_AUTODETECT_WINDOWED,1024,768,0,0)!=0) { set_gfx_mode(GFX_TEXT,0,0,0,0); allegro_message(allegro_error); exit(1); } textprintf_ex(screen,font,1,1,makecol(255,189,73),"Extreme Racing - %dx%d",1024,768); rect(screen,0,12,1023,767,makecol(255,242,169)); rect(screen,1,13,1022,765,makecol(255,242,169)); } void setup() { allegro_init(); set_color_depth(16); set_color_conversion(16); install_keyboard(); install_mouse(); install_timer(); /*don't know if you need this*/ setup_screen(); show_mouse(screen); } int main(void) { setup(); BITMAP *title; title = load_bitmap("images/title.bmp", NULL); if(!title) { allegro_message("Error loading images/title.bmp."); return 1; } bool test=false; while(!key[KEY_ESC]) { draw_sprite(screen,title,250,250); rest(120); } destroy_bitmap(title); allegro_exit(); return 0; } END_OF_MAIN()