diff options
author | epoch <epoch@hacking.allowed.org> | 2017-01-07 14:32:51 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2017-01-07 14:32:51 -0600 |
commit | 1feddc3ccd601fb7df41755569d1900539da24b7 (patch) | |
tree | aa1f09b8d6be0bc6a2ca60bad3277f7c3e655e9f | |
parent | 1d60a2e49190040bcd43e7887d8ef71bfb9aad65 (diff) | |
download | hackvr-1feddc3ccd601fb7df41755569d1900539da24b7.tar.gz hackvr-1feddc3ccd601fb7df41755569d1900539da24b7.zip |
fixed redraw check
-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 |