From 879970abd3146ad9b2354f6157fad1c4f1d33ec4 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Tue, 10 May 2016 13:58:59 +1000 Subject: [PATCH] Changed text rendering method --- render_text_texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render_text_texture.cpp b/render_text_texture.cpp index bd02f48..4b9d127 100644 --- a/render_text_texture.cpp +++ b/render_text_texture.cpp @@ -25,7 +25,7 @@ SDL_Texture* renderTextTexture(SDL_Renderer* renderer, TTF_Font* font, SDL_Color color, std::string str) { //make the surface (from SDL_ttf) - SDL_Surface* surface = TTF_RenderText_Solid(font, str.c_str(), color); + SDL_Surface* surface = TTF_RenderUTF8_Blended(font, str.c_str(), color); if (!surface) { throw(std::runtime_error("Failed to create a TTF surface")); }