From 9879fb2809c70338c50f23b19ac58ffc27068268 Mon Sep 17 00:00:00 2001 From: Dav999-v Date: Thu, 5 Jan 2023 04:55:13 +0100 Subject: [PATCH] Draw outlines for colored characters correctly If we try to draw a colored character, and the color is fully black, it means we're drawing the outline. --- desktop_version/src/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Font.cpp b/desktop_version/src/Font.cpp index c1470d78..8b58252c 100644 --- a/desktop_version/src/Font.cpp +++ b/desktop_version/src/Font.cpp @@ -333,7 +333,7 @@ int print_char( return f->glyph_w * scale; } - if (glyph->flags & GLYPH_COLOR) + if (glyph->flags & GLYPH_COLOR && (r | g | b) != 0) { graphics.draw_grid_tile(f->image, glyph->image_idx, x, y, f->glyph_w, f->glyph_h, 255, 255, 255, 255, scale, scale * (graphics.flipmode ? -1 : 1)); }