#endif
+#if 1
+
+static void DrawFrame(int Delta)
+{
+ int i, LX, tY, RX, BY;
+
+ LX = -1 + Delta;
+ tY = -1 + Delta;
+ RX = FieldWidth - Delta;
+ BY = FieldHeight - Delta;
+ DrawImage(LX, tY, imgFrameCorner);
+ DrawImage(LX, BY, imgFrameCorner);
+ DrawImage(RX, tY, imgFrameCorner);
+ DrawImage(RX, BY, imgFrameCorner);
+ for (i = LX + 1; i <= RX - 1; i++)
+ {
+ DrawImage(i, tY, imgFrameHorizontal);
+ DrawImage(i, BY, imgFrameHorizontal);
+ }
+
+ for (i = tY + 1; i <= BY - 1; i++)
+ {
+ DrawImage(LX, i, imgFrameVertical);
+ DrawImage(RX, i, imgFrameVertical);
+ }
+}
+
+#else
+
static void DrawFrame(int Delta)
{
int i, LX, tY, RX, BY;
}
}
+#endif
+
static void RestoreFrame()
{
int i, LX, tY, RX, BY;
Tmp = DisPlayField[tsi];
}
-#if 0
- if (TEST_flag)
- printf("::: MainForm.c: DrawFieldNoAnimated(): %d, %d [%d]\n",
- X, Y, Tmp);
-#endif
-
#if 1
if (Tmp >= 0 && Tmp <= 40)
{
}
}
+#if 1
+
+void DrawImage(int X, int Y, int graphic)
+{
+ StretchedSprites.BltImg(StretchWidth * X, StretchWidth * Y, graphic, 0);
+}
+
+#else
+
void DrawSprite(int X, int Y, int SpritePos)
{
StretchedSprites.BltEx(StretchWidth * X, StretchWidth * Y, SpritePos);
}
+#endif
+
#if 0
void InvalidateRect(long XMin, long YMin, long XMax, long YMax)