fixed bug with broken tape display when pausing in ffwd/warp/etc. modes
authorHolger Schemel <info@artsoft.org>
Wed, 10 May 2017 19:46:47 +0000 (21:46 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 10 May 2017 19:46:47 +0000 (21:46 +0200)
src/tape.c

index f0a8f02dce18ea2ae838c46840d7c67a80e7a106..a8ac4cea12a6d9974f541302ac0f85fb3e782abc 100644 (file)
@@ -376,15 +376,18 @@ void DrawVideoDisplayCurrentState()
   {
     state |= VIDEO_STATE_PLAY_ON;
 
-    if (tape.deactivate_display)
-      state |= VIDEO_STATE_WARP2_ON;
-    else if (tape.warp_forward)
-      state |= VIDEO_STATE_WARP_ON;
-    else if (tape.fast_forward)
-      state |= VIDEO_STATE_FFWD_ON;
-
-    if (tape.pause_before_end)
-      state |= VIDEO_STATE_PBEND_ON;
+    if (!tape.pausing)
+    {
+      if (tape.deactivate_display)
+       state |= VIDEO_STATE_WARP2_ON;
+      else if (tape.warp_forward)
+       state |= VIDEO_STATE_WARP_ON;
+      else if (tape.fast_forward)
+       state |= VIDEO_STATE_FFWD_ON;
+
+      if (tape.pause_before_end)
+       state |= VIDEO_STATE_PBEND_ON;
+    }
   }
 
   // draw labels and symbols separately to prevent labels overlapping symbols