summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2011-11-25 13:01:37 +0000
committerpeter1138 <peter1138@openttd.org>2011-11-25 13:01:37 +0000
commit03c86ab874b8d0678ac1847d9e13b7ce750857bb (patch)
treea1abca724e9a6679896ae9703ef7b0fe51e86cd4
parent8be8d5e843c0b1cdc3f94cdd1a3febc5a2ff197e (diff)
downloadopenttd-03c86ab874b8d0678ac1847d9e13b7ce750857bb.tar.xz
(svn r23325) -Fix (r23316): World screenshot was incorrectly positioned.
-rw-r--r--src/screenshot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screenshot.cpp b/src/screenshot.cpp
index e1f83eb47..5cf2ebf56 100644
--- a/src/screenshot.cpp
+++ b/src/screenshot.cpp
@@ -765,8 +765,8 @@ static bool MakeWorldScreenshot()
vp.zoom = ZOOM_LVL_WORLD_SCREENSHOT;
vp.left = 0;
vp.top = 0;
- vp.virtual_left = -(int)MapMaxX() * TILE_PIXELS;
- vp.virtual_top = -extra_height_top;
+ vp.virtual_left = -(int)MapMaxX() * TILE_PIXELS * ZOOM_LVL_BASE;
+ vp.virtual_top = -extra_height_top * ZOOM_LVL_BASE;
vp.virtual_width = (MapMaxX() + MapMaxY()) * TILE_PIXELS;
vp.width = vp.virtual_width;
vp.virtual_height = ((MapMaxX() + MapMaxY()) * TILE_PIXELS >> 1) + extra_height_top - reclaim_height_bottom;