SDL_ttf: Fix non-ASCII text rendering

This commit is contained in:
kichikuou
2019-08-16 20:43:29 +09:00
parent ced715e7ec
commit 8483b6353b
+1 -1
View File
@@ -125,7 +125,7 @@ static int font_sdlttf_draw_glyph(int x, int y, unsigned char *str, int cl) {
if (this->antialiase_on) {
fs = TTF_RenderUTF8_Blended(fontset->id, conv, sdl_col[cl]);
} else {
fs = TTF_RenderText_Solid(fontset->id, conv, sdl_col[cl]);
fs = TTF_RenderUTF8_Solid(fontset->id, conv, sdl_col[cl]);
}
if (!fs) {
WARNING("Text rendering failed: %s\n", TTF_GetError());