summaryrefslogtreecommitdiff
path: root/src/gfx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gfx.cpp')
-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];