(svn r2963) Fix: calculate proportions of non-square giant screenshot correctly.
authorpeter1138
Mon, 19 Sep 2005 16:03:47 +0000
changeset 2437 15ebf7766f40
parent 2436 7d5df545bd5d
child 2438 f0bf4adbd620
(svn r2963) Fix: calculate proportions of non-square giant screenshot correctly.
openttd.c
--- a/openttd.c	Sun Sep 18 20:56:44 2005 +0000
+++ b/openttd.c	Mon Sep 19 16:03:47 2005 +0000
@@ -974,7 +974,7 @@
 			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;
 		}
 	}