From 03c86ab874b8d0678ac1847d9e13b7ce750857bb Mon Sep 17 00:00:00 2001 From: peter1138 Date: Fri, 25 Nov 2011 13:01:37 +0000 Subject: (svn r23325) -Fix (r23316): World screenshot was incorrectly positioned. --- src/screenshot.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3-70-g09d2