From 4117e9a9e5186bd906f341fd18737754e6674232 Mon Sep 17 00:00:00 2001 From: YJSoft Date: Sat, 13 Aug 2016 17:29:04 +0900 Subject: [PATCH] fix #4251 Banner font is black when using ttf font (#4272) --- src/drawing/scrolling_text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drawing/scrolling_text.c b/src/drawing/scrolling_text.c index f1a69df4b0..10274464bf 100644 --- a/src/drawing/scrolling_text.c +++ b/src/drawing/scrolling_text.c @@ -1524,7 +1524,7 @@ void scrolling_text_set_bitmap_for_ttf(utf8 *text, int scroll, uint8 *bitmap, co if (colour == 0) { colour = scrolling_text_get_colour(gCommonFormatArgs[7]); } else { - colour = g1Elements[SPR_TEXT_PALETTE].offset[colour - FORMAT_COLOUR_CODE_START]; + colour = g1Elements[SPR_TEXT_PALETTE].offset[(colour - FORMAT_COLOUR_CODE_START) * 4]; } SDL_Surface *surface = ttf_surface_cache_get_or_add(fontDesc->font, text);