projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20091124-2-src
[rocksndiamonds.git]
/
src
/
game_sp
/
MainForm.c
diff --git
a/src/game_sp/MainForm.c
b/src/game_sp/MainForm.c
index 2f845154c45d05043d924fd7609ffd06163657d1..a9dc22c5789dbf8cbaa4a74693cfd4feb05e4b54 100644
(file)
--- a/
src/game_sp/MainForm.c
+++ b/
src/game_sp/MainForm.c
@@
-1003,6
+1003,17
@@
static boolean InstanceStillRunning(char *TmpFile)
#endif
#endif
+void DrawFrameIfNeeded()
+{
+ DrawFrame(0);
+
+ /* !!! CHECK THIS !!! */
+#if 1
+ if (! menBorder.Checked)
+ DrawFrame(1);
+#endif
+}
+
void DisplayLevel()
{
int X, Y;
void DisplayLevel()
{
int X, Y;
@@
-1018,6
+1029,10
@@
void DisplayLevel()
if (! LevelLoaded)
return;
if (! LevelLoaded)
return;
+ ClearRectangle(backbuffer, REAL_SX, REAL_SY, FULL_SXSIZE, FULL_SYSIZE);
+ ClearRectangle(screenBitmap, 0, 0,
+ MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY);
+
#if 1
SetDisplayRegion();
#endif
#if 1
SetDisplayRegion();
#endif
@@
-3208,8
+3223,9
@@
void DrawFieldNoAnimated(int X, int Y)
}
#if 0
}
#if 0
- printf("::: MainForm.c: DrawFieldNoAnimated(): %d, %d [%d]\n",
- X, Y, Tmp);
+ if (TEST_flag)
+ printf("::: MainForm.c: DrawFieldNoAnimated(): %d, %d [%d]\n",
+ X, Y, Tmp);
#endif
StretchedSprites.BltEx(StretchWidth * X, StretchWidth * Y, Tmp);
#endif
StretchedSprites.BltEx(StretchWidth * X, StretchWidth * Y, Tmp);