summaryrefslogtreecommitdiff
path: root/src/screenshot.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-05-01 19:55:46 +0200
committerMichael Lutz <michi@icosahedron.de>2021-05-02 17:57:24 +0200
commit1f159f79de7428cbaa6133ec9cf06ce559980ea6 (patch)
treeebdfebfbca17f8ab485198b48c473a1138f3be8f /src/screenshot.h
parent91b8ce073f54dff48cd61186c32d0a720a2abb4d (diff)
downloadopenttd-1f159f79de7428cbaa6133ec9cf06ce559980ea6.tar.xz
Fix #9147: Delay making screenshots until the next draw tick as we may not access the video buffer from the game thread.
Diffstat (limited to 'src/screenshot.h')
-rw-r--r--src/screenshot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screenshot.h b/src/screenshot.h
index 148c018e1..e65813573 100644
--- a/src/screenshot.h
+++ b/src/screenshot.h
@@ -28,7 +28,7 @@ enum ScreenshotType {
void SetupScreenshotViewport(ScreenshotType t, struct Viewport *vp, uint32 width = 0, uint32 height = 0);
bool MakeHeightmapScreenshot(const char *filename);
void MakeScreenshotWithConfirm(ScreenshotType t);
-bool MakeScreenshot(ScreenshotType t, const char *name, uint32 width = 0, uint32 height = 0);
+bool MakeScreenshot(ScreenshotType t, std::string name, uint32 width = 0, uint32 height = 0);
bool MakeMinimapWorldScreenshot();
extern char _screenshot_format_name[8];