diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-05-01 19:55:46 +0200 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-05-02 17:57:24 +0200 |
commit | 1f159f79de7428cbaa6133ec9cf06ce559980ea6 (patch) | |
tree | ebdfebfbca17f8ab485198b48c473a1138f3be8f /src/screenshot.h | |
parent | 91b8ce073f54dff48cd61186c32d0a720a2abb4d (diff) | |
download | openttd-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.h | 2 |
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]; |