added some performance tuning for "autotest" and warp mode
[rocksndiamonds.git] / src / libgame / system.c
index a87ecc837f15206351dd228e89bedcf25512a925..6f063d1c01b0d79df41f2989b8d4dec35bae12a0 100644 (file)
@@ -600,6 +600,17 @@ inline static boolean CheckDrawingArea(int x, int y, int width, int height,
   return FALSE;
 }
 
+boolean DrawingDeactivatedField()
+{
+  if (program.headless)
+    return TRUE;
+
+  if (gfx.draw_deactivation_mask & REDRAW_FIELD)
+    return TRUE;
+
+  return FALSE;
+}
+
 boolean DrawingDeactivated(int x, int y, int width, int height)
 {
   return CheckDrawingArea(x, y, width, height, gfx.draw_deactivation_mask);