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 :
blit(DoubleBuffer, screen, 0, 0, 0, 0, DoubleBuffer->w, DoubleBuffer->h);
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?