1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00

fix #4251 Banner font is black when using ttf font (#4272)

This commit is contained in:
YJSoft
2016-08-13 17:29:04 +09:00
committed by Michael Steenbeek
parent eec0a0cb18
commit 4117e9a9e5

View File

@@ -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);