mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-22 22:48:08 +03:00
SDL_ttf: Fix non-ASCII text rendering
This commit is contained in:
+1
-1
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user