# HG changeset patch # User JMcKiern # Date 2020-01-18 22:05:51 # Node ID 43be4bdad6bc5f53588647c9a119165b8f88a3e5 # Parent 80b926de41963a45a3565534e98c6a9ddf444c8d Fix #7927: Incorrect resolution shown in "Huge screenshot" query window. (#7949) diff --git a/src/screenshot_gui.cpp b/src/screenshot_gui.cpp --- 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 {