I was involved in an earlier discussion about hovering the mouse over some text and getting it to change color. Should have been pretty simple except that I did not (and still do not know) how redraw occurs....
I was trying to print the mouse position to the screen with something simple like:
sprintf(strTxt,"X=%d Y= %d",dbMouseX(),dbMouseY());
dbSetCursor ( 0,0 ) ;
dbPrint(strTxt);
What I saw happen was it quickly overdrawing the text and making it unreadable.
The way I 'fixed' this was to load any object which caused redraws to occur correctly all over the screen. It seems that of a small object does not cover the whole screen, something like invalidaterect() would be called with just the rectangle of the object and not the whole screen. This should not have allowed me to see my text being drawn correctly...
Any insight? Just curious, as invaliding the whole screen seems inefficient in a game environment.... I may also be completely off base