File diff r24332:888b18f86927 → r24333:94ef0c6c84e2
src/screenshot.cpp
Show inline comments
 
@@ -612,7 +612,7 @@ static void CurrentScreenCallback(void *
 
 */
 
static void LargeWorldCallback(void *userdata, void *buf, uint y, uint pitch, uint n)
 
{
 
	ViewPort *vp = (ViewPort *)userdata;
 
	Viewport *vp = (Viewport *)userdata;
 
	DrawPixelInfo dpi, *old_dpi;
 
	int wx, left;
 

	
 
@@ -707,11 +707,11 @@ static bool MakeSmallScreenshot(bool cra
 
}
 

	
 
/**
 
 * Configure a ViewPort for rendering (a part of) the map into a screenshot.
 
 * Configure a Viewport for rendering (a part of) the map into a screenshot.
 
 * @param t Screenshot type
 
 * @param[out] vp Result viewport
 
 */
 
void SetupScreenshotViewport(ScreenshotType t, ViewPort *vp)
 
void SetupScreenshotViewport(ScreenshotType t, Viewport *vp)
 
{
 
	switch(t) {
 
		case SC_VIEWPORT:
 
@@ -782,7 +782,7 @@ void SetupScreenshotViewport(ScreenshotT
 
 */
 
static bool MakeLargeWorldScreenshot(ScreenshotType t)
 
{
 
	ViewPort vp;
 
	Viewport vp;
 
	SetupScreenshotViewport(t, &vp);
 

	
 
	const ScreenshotFormat *sf = _screenshot_formats + _cur_screenshot_format;
 
@@ -852,7 +852,7 @@ static void ScreenshotConfirmationCallba
 
 */
 
void MakeScreenshotWithConfirm(ScreenshotType t)
 
{
 
	ViewPort vp;
 
	Viewport vp;
 
	SetupScreenshotViewport(t, &vp);
 

	
 
	bool heightmap_or_minimap = t == SC_HEIGHTMAP || t == SC_MINIMAP;