summaryrefslogtreecommitdiff
path: root/src/screenshot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/screenshot.cpp')
-rw-r--r--src/screenshot.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/screenshot.cpp b/src/screenshot.cpp
index f91648cf4..ddb22f13e 100644
--- a/src/screenshot.cpp
+++ b/src/screenshot.cpp
@@ -12,6 +12,7 @@
#include "viewport_func.h"
#include "gfx_func.h"
#include "screenshot.h"
+#include "screenshot_gui.h"
#include "blitter/factory.hpp"
#include "zoom_func.h"
#include "core/endian_func.hpp"
@@ -909,8 +910,10 @@ static bool RealMakeScreenshot(ScreenshotType t, std::string name, uint32 width,
* 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). */
+ SetScreenshotWindowVisibility(true);
UndrawMouseCursor();
DrawDirtyBlocks();
+ SetScreenshotWindowVisibility(false);
}
_screenshot_name[0] = '\0';