- ScrollMaxX = (DisplayMaxX + border_offset) * BaseWidth - SXSIZE;
- ScrollMaxY = (DisplayMaxY + border_offset) * BaseWidth - SYSIZE;
-
-#if 1
- if (!menBorder)
- {
- ScrollMinX += TILEX / 2;
- ScrollMinY += TILEY / 2;
- ScrollMaxX -= TILEX / 2;
- ScrollMaxY -= TILEY / 2;
- }
-#if 1
- {
- ScrollMinX -= game_sp.scroll_xoffset;
- ScrollMaxX -= game_sp.scroll_xoffset;
- ScrollMinY -= game_sp.scroll_yoffset;
- ScrollMaxY -= game_sp.scroll_yoffset;
- }
+#if NEW_TILESIZE
+ ScrollMaxX = (DisplayMaxX + border1_offset) * TILEX - pseudo_sxsize;
+ ScrollMaxY = (DisplayMaxY + border1_offset) * TILEY - pseudo_sysize;