#165196 - bing - Fri Dec 12, 2008 10:18 am
Hello,
how can i clear the display? :o
As you can see, i tried "system("cls")", but it doesn`t work. :(
So please help me out.
Bing :)
how can i clear the display? :o
Code: |
#include <mygba.h>
int main() { ham_Init(); ham_InitText(0); int xpos=9,ypos=9; ham_DrawText(xpos,ypos,"Beweglich!"); while(!F_CTRLINPUT_START_PRESSED) { if(F_CTRLINPUT_RIGHT_PRESSED) { xpos++; system("cls"); ham_DrawText(xpos,ypos,"Beweglich!"); } else if(F_CTRLINPUT_LEFT_PRESSED) { xpos--; system("cls"); ham_DrawText(xpos,ypos,"Beweglich!"); } else if(F_CTRLINPUT_UP_PRESSED) { ypos--; system("cls"); ham_DrawText(xpos,ypos,"Beweglich!"); } else if(F_CTRLINPUT_DOWN_PRESSED) { ypos++; system("cls"); ham_DrawText(xpos,ypos,"Beweglich!"); } } return 0; } |
As you can see, i tried "system("cls")", but it doesn`t work. :(
So please help me out.
Bing :)