diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/truetypefont.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/truetypefont.cpp b/src/gui/truetypefont.cpp index 7f9abd3a..f81ea9c2 100644 --- a/src/gui/truetypefont.cpp +++ b/src/gui/truetypefont.cpp @@ -58,7 +58,7 @@ class TextChunk sdlCol.r = color.r; sdlCol.g = color.g; - SDL_Surface *surface = TTF_RenderUTF8_Blended( + SDL_Surface *surface = TTF_RenderText_Blended( font, text.c_str(), sdlCol); if (!surface) @@ -170,7 +170,7 @@ void TrueTypeFont::drawString(gcn::Graphics *graphics, int TrueTypeFont::getWidth(const std::string& text) const { int w, h; - TTF_SizeUTF8(mFont, text.c_str(), &w, &h); + TTF_SizeText(mFont, text.c_str(), &w, &h); return w; } |