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
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-04 22:18:26 +0100
commit0de4d5397f431d1fb1501230b9b69095642ce9ce (patch)
treebc19786389c82b07584ca84faf1fa8227a70b2e8 /src/gui/truetypefont.cpp
parent5cffb54e48034b0bc7bce2ae9a61ce4a24464e63 (diff)
downloadmana-client-0de4d5397f431d1fb1501230b9b69095642ce9ce.tar.gz
mana-client-0de4d5397f431d1fb1501230b9b69095642ce9ce.tar.bz2
mana-client-0de4d5397f431d1fb1501230b9b69095642ce9ce.tar.xz
mana-client-0de4d5397f431d1fb1501230b9b69095642ce9ce.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 0eed6f08..9343c224 100644
--- a/src/gui/truetypefont.cpp
+++ b/src/gui/truetypefont.cpp
@@ -55,7 +55,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)
@@ -167,7 +167,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;
}