Changed text rendering method

This commit is contained in:
2016-05-10 13:58:59 +10:00
parent 5a6e023061
commit 879970abd3
+1 -1
View File
@@ -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"));
}