diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2007-09-10 07:46:51 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-05 22:13:17 -0700 |
commit | 12c742f538bd24b8d25b4fe971c7eef507c3b4c9 (patch) | |
tree | 3462c60129cb51dec11a2fcf49afd532dcdaf064 /src/gui/browserbox.cpp | |
parent | cb7292a77b421e943518edd64b9f11a256b0a691 (diff) | |
download | mana-12c742f538bd24b8d25b4fe971c7eef507c3b4c9.tar.gz mana-12c742f538bd24b8d25b4fe971c7eef507c3b4c9.tar.bz2 mana-12c742f538bd24b8d25b4fe971c7eef507c3b4c9.tar.xz mana-12c742f538bd24b8d25b4fe971c7eef507c3b4c9.zip |
Modified the Aethyra client to use the TMW TrueType class, rather than
the inbuilt GUIChan TrueType class. (Didn't use it originally because I
didn't see the difference, when there's a considerable speedup, and that
originally the import for TMW was broken code at the time, which has
been fixed since.)
Diffstat (limited to 'src/gui/browserbox.cpp')
-rw-r--r-- | src/gui/browserbox.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/browserbox.cpp b/src/gui/browserbox.cpp index 78f3fef2..ebd92e5a 100644 --- a/src/gui/browserbox.cpp +++ b/src/gui/browserbox.cpp @@ -24,9 +24,7 @@ #include "browserbox.h" #include "colour.h" #include "linkhandler.h" - -#include "../graphics.h" -#include "../sdltruetypefont.hpp" +#include "truetypefont.h" BrowserBox::BrowserBox(unsigned int mode): gcn::Widget(), @@ -70,7 +68,7 @@ void BrowserBox::addRow(const std::string &row) std::string newRow; BROWSER_LINK bLink; int idx1, idx2, idx3; - gcn::contrib::SDLTrueTypeFont *font = static_cast<gcn::contrib::SDLTrueTypeFont*>(getFont()); + TrueTypeFont *font = static_cast<TrueTypeFont*>(getFont()); // Use links and user defined colors if (mUseLinksAndUserColors) @@ -268,7 +266,7 @@ BrowserBox::draw(gcn::Graphics *graphics) int x = 0, y = 0; int wrappedLines = 0; - gcn::contrib::SDLTrueTypeFont *font = static_cast<gcn::contrib::SDLTrueTypeFont*>(getFont()); + TrueTypeFont *font = static_cast<TrueTypeFont*>(getFont()); graphics->setColor(BLACK); for (TextRowIterator i = mTextRows.begin(); i != mTextRows.end(); i++) |