From 4b7ebcb51ce217f3aaab858c7a861a1dfc32443c Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Thu, 5 Oct 2017 14:11:50 +0200 Subject: [PATCH] Handle two rare cases: for red losses in finance window, and text in theme window. --- src/openrct2/drawing/string.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/openrct2/drawing/string.c b/src/openrct2/drawing/string.c index 028a0dd081..283ff4d366 100644 --- a/src/openrct2/drawing/string.c +++ b/src/openrct2/drawing/string.c @@ -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