summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-09-07 15:25:54 +0000
committerfrosch <frosch@openttd.org>2014-09-07 15:25:54 +0000
commit93722be21f15960f926d50808c21d6cfa80c604c (patch)
tree4e3368926f91c1a4fac9e38d74efaeed65113d14
parente2f5081f40706c389473639165c3cb95b72a4d1b (diff)
downloadopenttd-93722be21f15960f926d50808c21d6cfa80c604c.tar.xz
(svn r26792) -Fix: TC_NO_SHADE did not work for 32bpp text rendering.
-rw-r--r--src/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index 20e27519a..e90e2babf 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -435,7 +435,7 @@ static int DrawLayoutLine(const ParagraphLayouter::Line *line, int y, int left,
int dpi_left = dpi->left;
int dpi_right = dpi->left + dpi->width - 1;
- draw_shadow = fc->GetDrawGlyphShadow() && colour != TC_BLACK;
+ draw_shadow = fc->GetDrawGlyphShadow() && (colour & TC_NO_SHADE) == 0 && colour != TC_BLACK;
for (int i = 0; i < run->GetGlyphCount(); i++) {
GlyphID glyph = run->GetGlyphs()[i];