From 1feddc3ccd601fb7df41755569d1900539da24b7 Mon Sep 17 00:00:00 2001 From: epoch Date: Sat, 7 Jan 2017 14:32:51 -0600 Subject: fixed redraw check --- src/hackvr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3