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 50f6775bbaa2c6fc08129c04ebadcbd9efd4ad5e..af239591b40067a32c8fdd39cb0a1ae5ac229f6c 100644 (file)
@@ -4245,7 +4245,8 @@ void WaitForEventToContinue(void)
       still_wait = FALSE;
     }
 
-    BackToFront();
+    if (!PendingEvent())
+      BackToFront();
   }
 }