projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
34efaa3
)
rnd-19981202-2
author
Holger Schemel
<info@artsoft.org>
Wed, 2 Dec 1998 18:43:50 +0000
(19:43 +0100)
committer
Holger Schemel
<info@artsoft.org>
Sat, 30 Aug 2014 08:32:08 +0000
(10:32 +0200)
src/files.c
patch
|
blob
|
history
src/tools.c
patch
|
blob
|
history
diff --git
a/src/files.c
b/src/files.c
index 2b089217ae9daba79e3c6d345ec153f5f8d9787e..be7bd1a1aa84b01c27732517fb0798904c88d193 100644
(file)
--- 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 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
#define SCOREFILE_EXTENSION "sco"
#define ERROR_FILENAME "error.out"
#endif
diff --git
a/src/tools.c
b/src/tools.c
index 1d1c4ddab74dac7b8b66da271fc30c613a60ee7c..b8026898b0212a18490d2cfdac4e32b16eb76bde 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-117,13
+117,15
@@
void BackToFront()
if (setup.soft_scrolling)
{
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;
}
}
redraw_mask &= ~REDRAW_MAIN;
}