diff options
author | frosch <frosch@openttd.org> | 2014-09-07 15:25:54 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-09-07 15:25:54 +0000 |
commit | 93722be21f15960f926d50808c21d6cfa80c604c (patch) | |
tree | 4e3368926f91c1a4fac9e38d74efaeed65113d14 | |
parent | e2f5081f40706c389473639165c3cb95b72a4d1b (diff) | |
download | openttd-93722be21f15960f926d50808c21d6cfa80c604c.tar.xz |
(svn r26792) -Fix: TC_NO_SHADE did not work for 32bpp text rendering.
-rw-r--r-- | src/gfx.cpp | 2 |
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]; |