summaryrefslogtreecommitdiff
path: root/src/settings_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-01-08 16:58:10 +0000
committerfrosch <frosch@openttd.org>2012-01-08 16:58:10 +0000
commit45df862fb0b55358d7a7edd6ea2aa67d05cfd24b (patch)
tree0effda112b1eb0ec5d9025cd9b1ee89c9b884931 /src/settings_gui.cpp
parented46420ca0a8a4654c301609bbeed805e89c3166 (diff)
downloadopenttd-45df862fb0b55358d7a7edd6ea2aa67d05cfd24b.tar.xz
(svn r23775) -Change: Hide the PCX screenshot format from the options window, if a 32bpp blitter is used.
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r--src/settings_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 53217bb04..433e49261 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -32,6 +32,7 @@
#include "viewport_func.h"
#include "core/geometry_func.hpp"
#include "ai/ai.hpp"
+#include "blitter/factory.hpp"
#include "language.h"
@@ -260,6 +261,7 @@ struct GameOptionsWindow : Window {
list = new DropDownList();
*selected_index = _cur_screenshot_format;
for (uint i = 0; i < _num_screenshot_formats; i++) {
+ if (!GetScreenshotFormatSupports_32bpp(i) && BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth() == 32) continue;
list->push_back(new DropDownListStringItem(SPECSTR_SCREENSHOT_START + i, i, false));
}
break;