|
Allegro Mouse |
Fishcake
Member #8,704
June 2007
|
ok this is whats happening. whenever i move my mouse over some graphic, lets say some tiles i've loaded, there will be white squares drawn behind the mouse. im showing my mouse onto the DoubleBuffer, not the screen : void blitBuffer(){ show_mouse(DoubleBuffer); blit(DoubleBuffer, screen, 0, 0, 0, 0, DoubleBuffer->w, DoubleBuffer->h); clear_to_color(DoubleBuffer, makecol(255,255,255)); } i tried replacing clear_to_color() with clear(). now black rectangles appear. and when the mouse move over sprites(NPC and stuff), the sprite will flicker. how do i fix that?
|
Kitty Cat
Member #2,815
October 2002
|
Don't use show_mouse on a memory bitmap. Call show_mouse(NULL) at init, and do: -- |
Fishcake
Member #8,704
June 2007
|
woot that was fast thank you, it solved the problem!
|
|