removed unnecessary screen redraws when waiting for events to continue
authorHolger Schemel <info@artsoft.org>
Sun, 4 Oct 2020 23:12:51 +0000 (01:12 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 4 Oct 2020 23:12:51 +0000 (01:12 +0200)
src/tools.c

index 50f6775..af23959 100644 (file)
@@ -4245,7 +4245,8 @@ void WaitForEventToContinue(void)
       still_wait = FALSE;
     }
 
-    BackToFront();
+    if (!PendingEvent())
+      BackToFront();
   }
 }