diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index fb56177bc5..af488d43b2 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -1719,9 +1719,8 @@ void SmallMapWindow::ScreenshotCallbackHandler(void *buf, uint y, uint pitch, ui dpi.left = 0; dpi.top = y; - int32 pos = (((int32)MapMaxX() + 1) * TILE_PIXELS) / 4; - this->scroll_x = pos; - this->scroll_y = -pos; + this->scroll_x = (dpi.width / 2) - ((16 * ((int)MapSizeY() - (int)MapSizeX())) / this->zoom); + this->scroll_y = 0; /* make the screenshot */ this->DrawSmallMap(&dpi, false);