rnd-19981202-2
authorHolger Schemel <info@artsoft.org>
Wed, 2 Dec 1998 18:43:50 +0000 (19:43 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:32:08 +0000 (10:32 +0200)
src/files.c
src/tools.c

index 2b089217ae9daba79e3c6d345ec153f5f8d9787e..be7bd1a1aa84b01c27732517fb0798904c88d193 100644 (file)
@@ -58,7 +58,7 @@
 #define LEVELSETUP_FILENAME    "lvlsetup.cnf"
 #define LEVELINFO_FILENAME     "lvlinfo.cnf"
 #define LEVELFILE_EXTENSION    "lvl"
-#define TAPEFILE_EXTENSION     "rec"
+#define TAPEFILE_EXTENSION     "tap"
 #define SCOREFILE_EXTENSION    "sco"
 #define ERROR_FILENAME         "error.out"
 #endif
index 1d1c4ddab74dac7b8b66da271fc30c613a60ee7c..b8026898b0212a18490d2cfdac4e32b16eb76bde 100644 (file)
@@ -117,13 +117,15 @@ void BackToFront()
 
       if (setup.soft_scrolling)
       {
-       fx += (ScreenMovDir & (MV_LEFT|MV_RIGHT) ? ScreenGfxPos : 0);
-       fy += (ScreenMovDir & (MV_UP|MV_DOWN)    ? ScreenGfxPos : 0);
+       fx += (ScreenMovDir & (MV_LEFT | MV_RIGHT) ? ScreenGfxPos : 0);
+       fy += (ScreenMovDir & (MV_UP | MV_DOWN)    ? ScreenGfxPos : 0);
       }
 
-      XCopyArea(display,buffer,window,gc,
-               fx,fy, SXSIZE,SYSIZE,
-               SX,SY);
+      if (setup.soft_scrolling ||
+         ABS(ScreenGfxPos) + ScrollStepSize == TILEX ||
+         ABS(ScreenGfxPos) == ScrollStepSize ||
+         redraw_tiles > REDRAWTILES_THRESHOLD)
+       XCopyArea(display, buffer, window, gc, fx, fy, SXSIZE, SYSIZE, SX, SY);
     }
     redraw_mask &= ~REDRAW_MAIN;
   }