summaryrefslogtreecommitdiff
path: root/src/gui/truetypefont.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-04 13:31:19 +0100
committerIra Rice <irarice@gmail.com>2009-01-05 22:19:04 -0700
commit3d7d18e75b0ea5ac1328f2187a89be4e31f73d3f (patch)
tree497f430f6c75e6a0cf678f1d44c28701cd52b9ac /src/gui/truetypefont.cpp
parent2dd65bbffb6f4c8e066232754a8e80b86925e6fd (diff)
downloadmana-client-3d7d18e75b0ea5ac1328f2187a89be4e31f73d3f.tar.gz
mana-client-3d7d18e75b0ea5ac1328f2187a89be4e31f73d3f.tar.bz2
mana-client-3d7d18e75b0ea5ac1328f2187a89be4e31f73d3f.tar.xz
mana-client-3d7d18e75b0ea5ac1328f2187a89be4e31f73d3f.zip
Fixed rendering of special characters
The font was interpreting the strings as UTF8, as they are in the mainline client. But in the eAthena client they are regular text.
Diffstat (limited to 'src/gui/truetypefont.cpp')
-rw-r--r--src/gui/truetypefont.cpp4
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;
}