diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/hackvr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hackvr.c b/src/hackvr.c index 381e424..e2a0593 100644 --- a/src/hackvr.c +++ b/src/hackvr.c @@ -345,11 +345,10 @@ int main(int argc,char *argv[]) { printf("# entering main loop\n"); for(;;) { #ifdef GRAPHICAL - redraw=gra_global.force_redraw; if((redraw=graphics_event_handler()) == -1) { return 0; } - if(redraw && !global.headless) { + if((redraw || gra_global.force_redraw) && !global.headless) { draw_screen(); } #endif |