witam mam taki kod(testowy)
#include <allegro.h>
#include <stdio.h>
int main()
{
allegro_init();
install_keyboard();
install_mouse();
show_mouse(screen);
set_color_depth(32);
set_gfx_mode(GFX_AUTODETECT_WINDOWED, 640, 700, 0, 0);
BITMAP *buffer = create_bitmap(640, 700);
clear_to_color(screen, 0x333333);
char napis[50];
int red = makecol(255,0,0);
int white = makecol(255,255,255);
int x1=100;
int x2=400;
int y1=100;
int y2=400;
int xmouse,ymouse;
rectfill(screen,x1,y1,x2,y2,white);
xmouse= mouse_x;
ymouse=mouse_y;
sprintf(napis,"[ %d %d ]",xmouse,ymouse);
textout_centre_ex(screen, font, napis, 320, 5, 0xFFFFFF, 0x333333);
readkey();
destroy_bitmap(buffer);
return 0;
}
END_OF_MAIN();
czemu kiedy wjeżdżam myszką na ekran gdzie jest program myszka znika?
kiedy dałem metode show_mouse?