rnd-20061101-2-src
authorHolger Schemel <info@artsoft.org>
Wed, 1 Nov 2006 20:43:29 +0000 (21:43 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:53:42 +0000 (10:53 +0200)
src/conftime.h
src/tools.c

index 8f08f072512ed6ecca7a74817551ca650d231ce0..6c192f83bf712dede1a3bc85b50af2c826a7b7b0 100644 (file)
@@ -1 +1 @@
-#define COMPILE_DATE_STRING "[2006-11-01 21:07]"
+#define COMPILE_DATE_STRING "[2006-11-01 21:41]"
index 415935a4ed98f9772989edf5f8bd2c6f62b2f0c6..e2298073706e56c09534db931d86f4f3a32e8b30 100644 (file)
@@ -314,18 +314,16 @@ void BackToFront()
 
   SyncDisplay();
 
-#if 1
+  /* prevent drawing masked border to backbuffer when using playfield buffer */
   if (game_status != GAME_MODE_PLAYING ||
       redraw_mask & REDRAW_FROM_BACKBUFFER ||
       buffer == backbuffer)
     DrawMaskedBorder(redraw_mask);
-#endif
+  else
+    DrawMaskedBorder(redraw_mask & REDRAW_DOORS);
 
   if (redraw_mask & REDRAW_ALL)
   {
-#if 0
-    DrawMaskedBorder(REDRAW_ALL);
-#endif
     BlitBitmap(backbuffer, window, 0, 0, WIN_XSIZE, WIN_YSIZE, 0, 0);
 
     redraw_mask = REDRAW_NONE;
@@ -358,6 +356,7 @@ void BackToFront()
        {
          if (buffer != backbuffer)
          {
+           /* copy playfield buffer to backbuffer to add masked border */
            BlitBitmap(buffer, backbuffer, fx, fy, SXSIZE, SYSIZE, SX, SY);
            DrawMaskedBorder(REDRAW_FIELD);
          }