mirror of https://github.com/OpenRCT2/OpenRCT2.git
Shade black backgrounds differently (e.g. IME)
This commit is contained in:
parent
f2e795b4ef
commit
fec0568b29
|
@ -805,6 +805,11 @@ static void ttf_draw_string_raw_ttf(rct_drawpixelinfo *dpi, const utf8 *text, te
|
|||
// Centre of the glyph: use full colour.
|
||||
*dst = colour;
|
||||
}
|
||||
else if (*dst < 10 && *src > 50)
|
||||
{
|
||||
// For black backgrounds, hint using grey pixels.
|
||||
*dst = 13;
|
||||
}
|
||||
else if (*src > 70)
|
||||
{
|
||||
// Simulate font hinting by shading the background colour instead.
|
||||
|
|
Loading…
Reference in New Issue