From: Holger Schemel Date: Wed, 2 Dec 1998 18:43:50 +0000 (+0100) Subject: rnd-19981202-2 X-Git-Tag: 1.2.0^2~6 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=c56ae03b51200429cfa20db7d61cfe907dc2e26e rnd-19981202-2 --- diff --git a/src/files.c b/src/files.c index 2b089217..be7bd1a1 100644 --- a/src/files.c +++ b/src/files.c @@ -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 diff --git a/src/tools.c b/src/tools.c index 1d1c4dda..b8026898 100644 --- a/src/tools.c +++ b/src/tools.c @@ -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; }