diff options
author | JMcKiern <jmckiern@tcd.ie> | 2020-01-18 22:05:51 +0000 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2020-01-18 23:05:51 +0100 |
commit | 6dfe5c852eba98dd51d5ff7b65817113213e091f (patch) | |
tree | 2c0266da3fb47e2357f875fa468a754c6d663e0a /src | |
parent | 3b177af8263df5212bf3ea3bcd048846f704a868 (diff) | |
download | openttd-6dfe5c852eba98dd51d5ff7b65817113213e091f.tar.xz |
Fix #7927: Incorrect resolution shown in "Huge screenshot" query window. (#7949)
Diffstat (limited to 'src')
-rw-r--r-- | src/screenshot_gui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/screenshot_gui.cpp b/src/screenshot_gui.cpp index 72e118b51..323002024 100644 --- a/src/screenshot_gui.cpp +++ b/src/screenshot_gui.cpp @@ -14,6 +14,7 @@ #include "window_gui.h" #include "screenshot.h" #include "textbuf_gui.h" +#include "strings_func.h" #include "widgets/screenshot_widget.h" @@ -57,6 +58,8 @@ struct ScreenshotWindow : Window { if ((uint64)vp.width * (uint64)vp.height > 8192 * 8192) { /* Ask for confirmation */ _screenshot_type = st; + SetDParam(0, vp.width); + SetDParam(1, vp.height); ShowQuery(STR_WARNING_SCREENSHOT_SIZE_CAPTION, STR_WARNING_SCREENSHOT_SIZE_MESSAGE, nullptr, ScreenshotConfirmationCallback); } else { |