mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Fix small map window screenshots
This commit is contained in:
parent
80ab88b9c5
commit
2d21e173a2
@ -1077,7 +1077,7 @@ static void SmallMapCallback(void *userdata, void *buf, uint y, uint pitch, uint
|
||||
*/
|
||||
bool MakeSmallMapScreenshot(unsigned int width, unsigned int height, SmallMapWindow *window)
|
||||
{
|
||||
_screenshot_name[0] = '\0';
|
||||
_screenshot_name.clear();
|
||||
bool ret = _cur_screenshot_format->proc(MakeScreenshotName(SCREENSHOT_NAME, _cur_screenshot_format->extension), SmallMapCallback, window, width, height, BlitterFactory::GetCurrentBlitter()->GetScreenDepth(), _cur_palette.palette);
|
||||
ShowScreenshotResultMessage(SC_SMALLMAP, ret);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user