Mercurial > hg > openttd
changeset 18481:b93f17b8a8aa draft
(svn r23325) -Fix (r23316): World screenshot was incorrectly positioned.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Fri, 25 Nov 2011 13:01:37 +0000 |
parents | aa37d4f4905c |
children | 33f9e2724d66 |
files | src/screenshot.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/screenshot.cpp +++ b/src/screenshot.cpp @@ -765,8 +765,8 @@ 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;