|
refresh screen problem . |
chin jiunn gai
Member #6,753
January 2006
|
#include <conio.h> void init(){ int main () ------------------------------------------------------------------------------- how can i refresh the x,y value ? my output is overlaping .. |
ReyBrujo
Moderator
January 2001
|
The easiest way, before the textprintf, call clear_bitmap(screen); or clear_screen(); (dunno which one will work for you, as you seem to have an old version of Allegro, it may also work clear(screen);). The better way is using a double buffer instead of drawing directly on the screen, like:
Don't include conio.h, and don't put semicolon at the end of END_OF_MAIN. -- |
|