summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-09-19 16:03:47 +0000
committerpeter1138 <peter1138@openttd.org>2005-09-19 16:03:47 +0000
commit3d197e08610fc932b0cd147234e93f5538b66fc8 (patch)
tree21511452544f4414eee59d4090f2cc43d2d36229
parent8e6a911700de2875db95d254e5a5771e73ceedd7 (diff)
downloadopenttd-3d197e08610fc932b0cd147234e93f5538b66fc8.tar.xz
(svn r2963) Fix: calculate proportions of non-square giant screenshot correctly.
-rw-r--r--openttd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openttd.c b/openttd.c
index b2a6a667e..341c0e346 100644
--- a/openttd.c
+++ b/openttd.c
@@ -974,7 +974,7 @@ void GameLoop(void)
ShowScreenshotResult(MakeScreenshot());
break;
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;
}
}