projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20091208-1-src
[rocksndiamonds.git]
/
src
/
game_sp
/
MainForm.c
diff --git
a/src/game_sp/MainForm.c
b/src/game_sp/MainForm.c
index c3d7476e481fcacab1cd00714922f611e234708b..4ac25f812e2f398b756d92b5e710197d940bb8f1 100644
(file)
--- a/
src/game_sp/MainForm.c
+++ b/
src/game_sp/MainForm.c
@@
-674,16
+674,26
@@
void DrawFieldNoAnimated(int X, int Y);
// --- Option Explicit
// --- Option Compare Text
// --- Option Explicit
// --- Option Compare Text
+#if 0
+
long SetParent(long hWndChild, long hWndNewParent);
long SetWindowLong(long hWnd, long nIndex, long dwNewLong);
long GetWindowLong(long hWnd, long nIndex);
long SetParent(long hWndChild, long hWndNewParent);
long SetWindowLong(long hWnd, long nIndex, long dwNewLong);
long GetWindowLong(long hWnd, long nIndex);
+#if 0
long GetTempPath(long nBufferLength, char *lpBuffer);
long GetTempPath(long nBufferLength, char *lpBuffer);
+#endif
long GetWindowText(long hWnd, char *lpString, long cch);
long GetWindowText(long hWnd, char *lpString, long cch);
+#endif
+
+#if 0
+
#define GWL_STYLE ((-16))
#define WS_CHILD (0x40000000)
#define WS_POPUP (0x80000000)
#define GWL_STYLE ((-16))
#define WS_CHILD (0x40000000)
#define WS_POPUP (0x80000000)
+#endif
+
// [UNCOMMENTED] Dim StretchWidth2&
char *MpxBmp;
// [UNCOMMENTED] Dim StretchWidth2&
char *MpxBmp;
@@
-1003,6
+1013,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,13
+1039,18
@@
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
DrawFrame(0);
#if 1
SetDisplayRegion();
#endif
DrawFrame(0);
-#if 0
+ /* !!! CHECK THIS !!! */
+#if 1
if (! menBorder.Checked)
DrawFrame(1);
#endif
if (! menBorder.Checked)
DrawFrame(1);
#endif
@@
-1369,7
+1395,10
@@
void Form_Load()
PauseMode = 0;
// BaseWidth = 16
PauseMode = 0;
// BaseWidth = 16
- menBorder_Click();
+#if 1
+ if (0)
+ menBorder_Click();
+#endif
Loaded = True;
Loaded = True;
@@
-2509,7
+2538,9
@@
void menPlay_Click()
// Trace "MainForm", "subFetchAndInitLevel returned"
// Trace "MainForm", "subFetchAndInitLevel returned"
+#if 0
Stage.Blt();
Stage.Blt();
+#endif
#if 0
#if 0
@@
-2519,10
+2550,37
@@
void menPlay_Click()
// Trace "MainForm", "<-- menPlay_Click()"
// Trace "MainForm", "<-- menPlay_Click()"
+#endif
+}
+
+#if 1
+
+// static void menPlayDemo_Click()
+void menPlayDemo_Click()
+{
+ DemoFlag = 1;
+ RecordDemoFlag = 0;
+
+#if 0
+ lblStatus = "Demo Playback";
+#endif
+
+ menPlay_Click();
+
+#if 1
+ return; /* return after initialization phase */
+#endif
+
+#if 0
+ if (LevelStatus != 1)
+ lblStatus = "Demo Failed";
#endif
#endif
+ DemoFlag = 0;
}
}
+#else
+
// static void menPlayDemo_Click()
void menPlayDemo_Click()
{
// static void menPlayDemo_Click()
void menPlayDemo_Click()
{
@@
-2543,6
+2601,8
@@
void menPlayDemo_Click()
DemoFlag = 0;
}
DemoFlag = 0;
}
+#endif
+
#if 0
static void menRec_Click()
#if 0
static void menRec_Click()
@@
-2960,7
+3020,11
@@
static void picPane_Paint()
Oldflag = NoDisplayFlag;
NoDisplayFlag = False;
Oldflag = NoDisplayFlag;
NoDisplayFlag = False;
+
+#if 0
Stage.Blt();
Stage.Blt();
+#endif
+
NoDisplayFlag = Oldflag;
}
NoDisplayFlag = Oldflag;
}
@@
-3052,7
+3116,9
@@
static void ReStretch(float NewStretch)
ScrollTo(ScreenScrollXPos, ScreenScrollYPos);
ScrollTo(ScreenScrollXPos, ScreenScrollYPos);
+#if 0
Stage.Blt();
Stage.Blt();
+#endif
picPane_Paint();
}
picPane_Paint();
}
@@
-3167,8
+3233,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);