summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2011-10-04 21:35:57 +0000
committermichi_cc <michi_cc@openttd.org>2011-10-04 21:35:57 +0000
commit19f351c5895f8f2e1d9cf9a01cf2967c8b076ddf (patch)
tree78f8232c4e93ecb87e53024dc6141001a25869b6 /src
parent71bd681d87065d093aa11195d3949cf7b7be4a07 (diff)
downloadopenttd-19f351c5895f8f2e1d9cf9a01cf2967c8b076ddf.tar.xz
(svn r23002) -Add: Extend palette information in the NewGRF GUI with the 32 bpp state.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_gui.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index ca1d13f33..c3e4a1d8a 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -111,7 +111,11 @@ static void ShowNewGRFInfo(const GRFConfig *c, uint x, uint y, uint right, uint
y = DrawStringMultiLine(x, right, y, bottom, STR_NEWGRF_SETTINGS_PARAMETER);
/* Draw the palette of the NewGRF */
- SetDParamStr(0, (c->palette & GRFP_USE_WINDOWS) ? "Windows" : "DOS");
+ if (c->palette & GRFP_BLT_32BPP) {
+ SetDParamStr(0, (c->palette & GRFP_USE_WINDOWS) ? "Windows / 32 bpp" : "DOS / 32 bpp");
+ } else {
+ SetDParamStr(0, (c->palette & GRFP_USE_WINDOWS) ? "Windows" : "DOS");
+ }
y = DrawStringMultiLine(x, right, y, bottom, STR_NEWGRF_SETTINGS_PALETTE);
}