From 93722be21f15960f926d50808c21d6cfa80c604c Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 7 Sep 2014 15:25:54 +0000 Subject: [PATCH] (svn r26792) -Fix: TC_NO_SHADE did not work for 32bpp text rendering. --- src/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfx.cpp b/src/gfx.cpp index 20e27519ad..e90e2babf6 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];