1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00

Handle two rare cases: for red losses in finance window, and text in theme window.

This commit is contained in:
Aaron van Geffen
2017-10-05 14:11:50 +02:00
committed by Marijn van der Werf
parent fec0568b29
commit 4b7ebcb51c

View File

@@ -819,6 +819,16 @@ static void ttf_draw_string_raw_ttf(rct_drawpixelinfo *dpi, const utf8 *text, te
// of the foreground colour for font hinting.
*dst = colour - 4;
}
else if (colour == 153)
{
// Exception: theme window text colour.
*dst = 151;
}
else if (colour == 173)
{
// Exception: losses in finance window.
*dst = 175;
}
else
{
// For other texts, hinting direction depends on the intensity of the