mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01: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:
parent
4675238fa8
commit
9879fb2809
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ int print_char(
|
||||||
return f->glyph_w * scale;
|
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));
|
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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue