1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-28 23:48:30 +02:00

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.
This commit is contained in:
Dav999-v 2023-01-05 04:55:13 +01:00 committed by Misa Elizabeth Kai
parent 4675238fa8
commit 9879fb2809

View File

@ -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));
}