From 9b2a54bfbf418952941a4b4e62a21c1f96281129 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 25 Dec 2010 20:02:04 +0000 Subject: (svn r21640) -Change/Feature-ish: allow disabling the shading when drawing text --- src/gfx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gfx.cpp') diff --git a/src/gfx.cpp b/src/gfx.cpp index 0a61805ca..61df67745 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -286,9 +286,9 @@ static void SetColourRemap(TextColour colour) /* Black strings have no shading ever; the shading is black, so it * would be invisible at best, but it actually makes it illegible. */ - bool no_shade = colour == TC_BLACK; + bool no_shade = colour & TC_NO_SHADE || colour == TC_BLACK; bool raw_colour = colour & TC_IS_PALETTE_COLOUR; - colour &= ~TC_IS_PALETTE_COLOUR; + colour &= ~(TC_NO_SHADE | TC_IS_PALETTE_COLOUR); _string_colourremap[1] = raw_colour ? (byte)colour : _string_colourmap[_use_palette][colour]; _string_colourremap[2] = no_shade ? 0 : (_use_palette == PAL_DOS ? 1 : 215); -- cgit v1.2.3-54-g00ecf