improved displaying FPS (debug mode only)
[rocksndiamonds.git] / src / game.c
index bc402eca62cde8020db29942716fa85d592a1b5b..ce4fd8cb30e033a0fb9623b99bfe8bcf4dde681a 100644 (file)
@@ -11227,8 +11227,13 @@ void GameActionsExt()
       fps_frames = 0;
       fps_counter = Counter();
 
+      /* always draw FPS to screen after FPS value was updated */
       redraw_mask |= REDRAW_FPS;
     }
+
+    /* only draw FPS if no screen areas are deactivated (invisible warp mode) */
+    if (GetDrawDeactivationMask() == REDRAW_NONE)
+      redraw_mask |= REDRAW_FPS;
   }
 }