mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 22:13:07 +01:00
Shade black backgrounds differently (e.g. IME)
This commit is contained in:
committed by
Marijn van der Werf
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.
|
||||
|
||||
Reference in New Issue
Block a user