mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-20 10:52:41 +01:00
Codechange: Use EncodedString for Query window. (#13528)
This removes the need to separately capture and store global parameters.
This commit is contained in:
@@ -858,9 +858,9 @@ void MakeScreenshotWithConfirm(ScreenshotType t)
|
||||
if (width * height > 8192 * 8192) {
|
||||
/* Ask for confirmation */
|
||||
_confirmed_screenshot_type = t;
|
||||
SetDParam(0, width);
|
||||
SetDParam(1, height);
|
||||
ShowQuery(STR_WARNING_SCREENSHOT_SIZE_CAPTION, STR_WARNING_SCREENSHOT_SIZE_MESSAGE, nullptr, ScreenshotConfirmationCallback);
|
||||
ShowQuery(
|
||||
GetEncodedString(STR_WARNING_SCREENSHOT_SIZE_CAPTION),
|
||||
GetEncodedString(STR_WARNING_SCREENSHOT_SIZE_MESSAGE, width, height), nullptr, ScreenshotConfirmationCallback);
|
||||
} else {
|
||||
/* Less than 64M pixels, just do it */
|
||||
MakeScreenshot(t, {});
|
||||
|
||||
Reference in New Issue
Block a user