-#define COMPILE_DATE_STRING "2009-07-22 00:34"
+#define COMPILE_DATE_STRING "2009-07-22 12:30"
SR.left, SR.top, mScrollX, mScrollY, mDestXOff, mDestYOff);
#endif
+#if 0
+ BlitBitmap(screenBitmap, window,
+ 1600, 320,
+ SCR_FIELDX * TILEX, SCR_FIELDY * TILEY, SX, SY);
+#else
BlitBitmap(screenBitmap, window,
SR.left, SR.top,
SCR_FIELDX * TILEX, SCR_FIELDY * TILEY, SX, SY);
+#endif
return;
#endif
for (i = 0; i <= FieldMax; i++)
{
- PlayField16[i] = PlayField8[i];
+ PlayField16[i] = PlayField8[i];
DisPlayField[i] = PlayField8[i];
PlayField8[i] = 0;
}
+#if 0
+ {
+ int x, y;
+
+ for (x = 0; x < 60; x++)
+ printf("%02d.", x);
+ printf("\n");
+
+ for (x = 0; x < 60; x++)
+ printf("...");
+ printf("\n");
+
+ for (y = 0; y < 24; y++)
+ {
+ for (x = 0; x < 60; x++)
+ {
+ printf("%02d.", PlayField16[y * 60 + x]);
+ }
+
+ printf("\n");
+ }
+ }
+#endif
+
AnimationPosTable = REDIM_1D(sizeof(int), 0, LevelMax - 2 *FieldWidth);
AnimationSubTable = REDIM_1D(sizeof(byte), 0, LevelMax - 2 *FieldWidth);
TerminalState = REDIM_1D(sizeof(byte), FieldWidth, LevelMax - FieldWidth);
ScrollMinX = (int)(DisplayMinX - 0.5) * Stretch * BaseWidth;
ScrollMinY = (int)(DisplayMinY - 0.5) * Stretch * BaseWidth;
-#if 1
- ScrollMaxX = (int)(DisplayMaxX + 1.5) * Stretch * BaseWidth;
- ScrollMaxY = (int)(DisplayMaxY + 1.5) * Stretch * BaseWidth;
-#else
ScrollMaxX = (int)(DisplayMaxX + 1.5) * Stretch * BaseWidth - picPane.Width;
ScrollMaxY = (int)(DisplayMaxY + 1.5) * Stretch * BaseWidth - picPane.Height;
-#endif
#if 1
printf("::: MainForm.c: SetScrollEdges() done [%d, %d, %d, %d]\n",
#if 0
printf("::: MainForm.c: DrawFieldNoAnimated(): %d, %d [%d]\n",
- X, Y, StretchWidth);
+ X, Y, Tmp);
#endif
StretchedSprites.BltEx(StretchWidth * X, StretchWidth * Y, Tmp);
menPanel.Checked = True;
menAutoScroll.Checked = True;
- MainForm.picPane.Width = picPane.Width = 1935;
- MainForm.picPane.Height = picPane.Height = 1635;
+ MainForm.picPane.Width = picPane.Width = SCR_FIELDX * TILEX;
+ MainForm.picPane.Height = picPane.Height = SCR_FIELDY * TILEY;
}
void sp_open_all()
}
-void FILE_GET(FILE *a, int b, void *c, int d)
+void FILE_GET(FILE *file, int offset, void *buffer, int num_bytes)
{
- fseek(a, b, SEEK_SET);
+ fseek(file, offset - 1, SEEK_SET);
- while (d--)
- *(byte *)c++ = fgetc(a);
+ while (num_bytes--)
+ *(byte *)buffer++ = fgetc(file);
}
int FILE_PUT(FILE *a, int b, void *c, int d)