summaryrefslogtreecommitdiff
path: root/src/gui/browserbox.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2007-09-10 07:46:51 +0000
committerIra Rice <irarice@gmail.com>2009-01-05 22:13:17 -0700
commit12c742f538bd24b8d25b4fe971c7eef507c3b4c9 (patch)
tree3462c60129cb51dec11a2fcf49afd532dcdaf064 /src/gui/browserbox.cpp
parentcb7292a77b421e943518edd64b9f11a256b0a691 (diff)
downloadMana-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.cpp8
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++)