(svn r2963) Fix: calculate proportions of non-square giant screenshot correctly.

This commit is contained in:
peter1138 2005-09-19 16:03:47 +00:00
parent 4a58250cb9
commit 81052c160b

View File

@ -974,7 +974,7 @@ void GameLoop(void)
ShowScreenshotResult(MakeScreenshot()); ShowScreenshotResult(MakeScreenshot());
break; break;
case 2: // make large screenshot case 2: // make large screenshot
ShowScreenshotResult(MakeWorldScreenshot(-(int)MapMaxX() * 32, 0, MapMaxX() * 64, MapSizeY() * 32, 0)); ShowScreenshotResult(MakeWorldScreenshot(-(int)MapMaxX() * TILE_PIXELS, 0, (MapMaxX() + MapMaxY()) * TILE_PIXELS, (MapMaxX() + MapMaxY()) * TILE_PIXELS >> 1, 0));
break; break;
} }
} }