diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-04 03:28:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-04 03:28:21 +0300 |
commit | d18b9616bbe54db5d33363a197c8b9efa6161fa8 (patch) | |
tree | 56b1bca0f9ca60699810e2bf31625365c0affd42 /src/gui/widgets | |
parent | 07e988baf55b0e0f4b736e9305604536dbc872ff (diff) | |
download | mv-d18b9616bbe54db5d33363a197c8b9efa6161fa8.tar.gz mv-d18b9616bbe54db5d33363a197c8b9efa6161fa8.tar.bz2 mv-d18b9616bbe54db5d33363a197c8b9efa6161fa8.tar.xz mv-d18b9616bbe54db5d33363a197c8b9efa6161fa8.zip |
Rename TrueTypeFont to SDLFont.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/textpreview.cpp | 6 |
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), |