Changeset - r18257:026f46be2368
[Not reviewed]
master
0 1 0
rubidium - 13 years ago 2011-11-04 10:32:26
rubidium@openttd.org
(svn r23103) -Codechange: replace TileHeight(x) * TILE_HEIGHT by TilePixelHeight(x)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/screenshot.cpp
Show inline comments
 
@@ -755,15 +755,15 @@ static bool MakeZoomedInScreenshot()
 
static bool MakeWorldScreenshot()
 
{
 
	ViewPort vp;
 
	const ScreenshotFormat *sf;
 

	
 
	/* We need to account for a hill or high building at tile 0,0. */
 
	int extra_height_top = TileHeight(0) * TILE_HEIGHT + 150;
 
	int extra_height_top = TilePixelHeight(0) + 150;
 
	/* If there is a hill at the bottom don't create a large black area. */
 
	int reclaim_height_bottom = TileHeight(MapSize() - 1) * TILE_HEIGHT;
 
	int reclaim_height_bottom = TilePixelHeight(MapSize() - 1);
 

	
 
	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;
0 comments (0 inline, 0 general)