From f2e795b4ef8d712aaddd08d31479fb08d075fdd9 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sun, 24 Sep 2017 02:56:16 +0200 Subject: [PATCH] Handle hinted font rendering in scrolled texts, too. --- src/openrct2/drawing/scrolling_text.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/openrct2/drawing/scrolling_text.c b/src/openrct2/drawing/scrolling_text.c index 27512f6dc7..bd21b0afdd 100644 --- a/src/openrct2/drawing/scrolling_text.c +++ b/src/openrct2/drawing/scrolling_text.c @@ -1566,8 +1566,12 @@ void scrolling_text_set_bitmap_for_ttf(utf8 *text, sint32 scroll, uint8 *bitmap, if (scrollPosition > -1) { uint8 *dst = &bitmap[scrollPosition]; - for (sint32 y = 0; y < height; y++) { - if (src[y * pitch + x] != 0) *dst = colour; + for (sint32 y = 0; y < height; y++) + { + if (src[y * pitch + x] > 92 || (src[y * pitch + x] != 0 && !gConfigFonts.enable_hinting)) + { + *dst = colour; + } // Jump to next row dst += 64;