changeset 18173:4a83f4b2e636 draft

(svn r23002) -Add: Extend palette information in the NewGRF GUI with the 32 bpp state.
author michi_cc <michi_cc@openttd.org>
date Tue, 04 Oct 2011 21:35:57 +0000
parents 6b655732c349
children 47525612bb95
files src/newgrf_gui.cpp
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -111,7 +111,11 @@
 		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);
 	}