From 19f351c5895f8f2e1d9cf9a01cf2967c8b076ddf Mon Sep 17 00:00:00 2001 From: michi_cc Date: Tue, 4 Oct 2011 21:35:57 +0000 Subject: (svn r23002) -Add: Extend palette information in the NewGRF GUI with the 32 bpp state. --- src/newgrf_gui.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3-54-g00ecf