Skip to content
Snippets Groups Projects
Commit 99f6743e authored by dg's avatar dg
Browse files

Maybe fix the non-redrawing screen. After a few tens of seconds it should force back to display

git-svn-id: http://svn.net-core.org/repos/t-engine4@5697 51575b47-30f0-44d4-a5cc-537603b46e54
parent 5724f9fd
No related branches found
No related tags found
No related merge requests found
......@@ -589,6 +589,9 @@ Uint32 redraw_timer(Uint32 interval, void *param)
if (!redraw_pending && isActive) {
SDL_PushEvent(&event);
redraw_pending = 1;
} else {
redraw_pending++;
if (redraw_pending > 600) { redraw_pending = 0; printf("==FORCE==\n"); } // Safety check
}
return(interval);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment