Hide screenshot window when taking normal screesnhot

This commit is contained in:
Jonathan G Rennison
2020-08-06 20:43:33 +01:00
parent cc45a99a4d
commit a65be9b747
3 changed files with 18 additions and 0 deletions

View File

@@ -27,6 +27,7 @@
#include "landscape.h"
#include "smallmap_colours.h"
#include "smallmap_gui.h"
#include "screenshot_gui.h"
#include "table/strings.h"
@@ -920,8 +921,10 @@ bool MakeScreenshot(ScreenshotType t, const char *name)
* of the screenshot. This way the screenshot will always show the name
* of the previous screenshot in the 'successful' message instead of the
* name of the new screenshot (or an empty name). */
SetScreenshotWindowHidden(true);
UndrawMouseCursor();
DrawDirtyBlocks();
SetScreenshotWindowHidden(false);
}
_screenshot_name[0] = '\0';