summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textpreview.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-04 03:28:21 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-04 03:28:21 +0300
commitd18b9616bbe54db5d33363a197c8b9efa6161fa8 (patch)
tree56b1bca0f9ca60699810e2bf31625365c0affd42 /src/gui/widgets/textpreview.cpp
parent07e988baf55b0e0f4b736e9305604536dbc872ff (diff)
downloadmanaverse-d18b9616bbe54db5d33363a197c8b9efa6161fa8.tar.gz
manaverse-d18b9616bbe54db5d33363a197c8b9efa6161fa8.tar.bz2
manaverse-d18b9616bbe54db5d33363a197c8b9efa6161fa8.tar.xz
manaverse-d18b9616bbe54db5d33363a197c8b9efa6161fa8.zip
Rename TrueTypeFont to SDLFont.
Diffstat (limited to 'src/gui/widgets/textpreview.cpp')
-rw-r--r--src/gui/widgets/textpreview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/textpreview.cpp b/src/gui/widgets/textpreview.cpp
index 6171a072f..6d41bef06 100644
--- a/src/gui/widgets/textpreview.cpp
+++ b/src/gui/widgets/textpreview.cpp
@@ -28,7 +28,7 @@
#include "gui/gui.h"
#include "gui/palette.h"
-#include "gui/truetypefont.h"
+#include "gui/sdlfont.h"
#include <typeinfo>
@@ -66,9 +66,9 @@ void TextPreview::draw(gcn::Graphics* graphics)
graphics->fillRectangle(gcn::Rectangle(0, 0, getWidth(), getHeight()));
}
- if (mTextBGColor && typeid(*mFont) == typeid(TrueTypeFont))
+ if (mTextBGColor && typeid(*mFont) == typeid(SDLFont))
{
- TrueTypeFont *font = static_cast<TrueTypeFont*>(mFont);
+ SDLFont *font = static_cast<SDLFont*>(mFont);
int x = font->getWidth(mText) + 1 + 2 * ((mOutline || mShadow) ? 1 :0);
int y = font->getHeight() + 1 + 2 * ((mOutline || mShadow) ? 1 : 0);
graphics->setColor(gcn::Color(static_cast<int>(mTextBGColor->r),