summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
50a5413)
* fixed nasty (typo) bug in native EM engine causing broken player
graphics when using different (redefined) playfield size
2014-08-19
* fixed bug causing wrong screen updates while playing (whole screen
update from backbuffer instead of playfield buffer if REDRAW_ALL set)
2014-08-19
* fixed bug causing wrong screen updates while playing (whole screen
update from backbuffer instead of playfield buffer if REDRAW_ALL set)
+ * fixed nasty (typo) bug in native EM engine causing broken player
+ graphics when using different (redefined) playfield size
2014-08-18
* fixed bug causing EM/EMC graphics sets containing original 16x16 tiles
2014-08-18
* fixed bug causing EM/EMC graphics sets containing original 16x16 tiles
-#define COMPILE_DATE_STRING "2014-08-19 00:00"
+#define COMPILE_DATE_STRING "2014-08-19 21:46"
int full_xsize = lev.width * TILEX;
int full_ysize = lev.height * TILEY;
int full_xsize = lev.width * TILEX;
int full_ysize = lev.height * TILEY;
+#if 0
+ printf("::: %d, %d\n", screenBitmap->width, screenBitmap->height);
+ printf("::: %d / %d, %d / %d\n",
+ MAX_BUF_XSIZE, MAX_BUF_YSIZE, SXSIZE, SYSIZE);
+#endif
+
sxsize = (full_xsize < xsize ? full_xsize : xsize);
sysize = (full_ysize < ysize ? full_ysize : ysize);
sx = SX + (full_xsize < xsize ? (xsize - full_xsize) / 2 : 0);
sxsize = (full_xsize < xsize ? full_xsize : xsize);
sysize = (full_ysize < ysize ? full_ysize : ysize);
sx = SX + (full_xsize < xsize ? (xsize - full_xsize) / 2 : 0);
int new_x = old_x + SIGN(dx);
int new_y = old_y + SIGN(dy);
int old_sx = old_x % MAX_BUF_XSIZE;
int new_x = old_x + SIGN(dx);
int new_y = old_y + SIGN(dy);
int old_sx = old_x % MAX_BUF_XSIZE;
- int old_sy = old_y % MAX_BUF_XSIZE;
+ int old_sy = old_y % MAX_BUF_YSIZE;
int new_sx = new_x % MAX_BUF_XSIZE;
int new_sx = new_x % MAX_BUF_XSIZE;
- int new_sy = new_y % MAX_BUF_XSIZE;
+ int new_sy = new_y % MAX_BUF_YSIZE;
#if 0
int old_crm = crumbled_state[old_sy][old_sx];
#endif
#if 0
int old_crm = crumbled_state[old_sy][old_sx];
#endif