diff options
author | frosch <frosch@openttd.org> | 2014-02-06 22:24:02 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-02-06 22:24:02 +0000 |
commit | 167f232623c86aef7f43e672332859f38fe9dce3 (patch) | |
tree | a0735b2e77394dbb9a5df33a749d8993d5c3aabf /src | |
parent | 9f6b8aea49cbafe9d19611dc31c64a92b171d14b (diff) | |
download | openttd-167f232623c86aef7f43e672332859f38fe9dce3.tar.xz |
(svn r26314) -Fix [FS#5899]: The giant-screenshot confirmation window only triggered for rediculously big screenshots, for ludicrously big ones.
Diffstat (limited to 'src')
-rw-r--r-- | src/toolbar_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index c14045600..57bc4d412 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -1064,14 +1064,14 @@ static void MenuClickLargeWorldScreenshot(ScreenshotType t) { ViewPort vp; SetupScreenshotViewport(t, &vp); - if (vp.width * vp.height > 8192 * 8192) { + if ((uint64)vp.width * (uint64)vp.height > 8192 * 8192) { /* Ask for confirmation */ SetDParam(0, vp.width); SetDParam(1, vp.height); _confirmed_screenshot_type = t; ShowQuery(STR_WARNING_SCREENSHOT_SIZE_CAPTION, STR_WARNING_SCREENSHOT_SIZE_MESSAGE, NULL, ScreenshotConfirmCallback); } else { - /* Less than 4M pixels, just do it */ + /* Less than 64M pixels, just do it */ MakeScreenshot(t, NULL); } } |