fixed slow tape quick-loading due to unneeded tape area update
authorHolger Schemel <info@artsoft.org>
Mon, 30 Mar 2015 22:47:22 +0000 (00:47 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 30 Mar 2015 22:47:22 +0000 (00:47 +0200)
src/tape.c

index efc8bcb4c26eca3fdf8189470d00319dbdb0dc02..bb0f08f8112ec4e065aa8ff28f2b2a4dab3e7e59 100644 (file)
@@ -289,6 +289,8 @@ static void DrawVideoDisplay_Graphics(unsigned int state, unsigned int value)
          if (gd_bitmap != NULL)
            BlitBitmap(gd_bitmap, drawto, gd_x, gd_y, gfx->width, gfx->height,
                       VX + pos->x, VY + pos->y);
+
+         redraw_mask |= REDRAW_DOOR_2;
        }
       }
     }
@@ -431,8 +433,6 @@ void DrawVideoDisplay(unsigned int state, unsigned int value)
 {
   DrawVideoDisplay_Graphics(state, value);
   DrawVideoDisplay_DateTime(state, value);
-
-  redraw_mask |= REDRAW_DOOR_2;
 }
 
 void DrawCompleteVideoDisplay()