From 12c742f538bd24b8d25b4fe971c7eef507c3b4c9 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Mon, 10 Sep 2007 07:46:51 +0000 Subject: 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.) --- src/gui/browserbox.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/gui/browserbox.cpp') 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(getFont()); + TrueTypeFont *font = static_cast(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(getFont()); + TrueTypeFont *font = static_cast(getFont()); graphics->setColor(BLACK); for (TextRowIterator i = mTextRows.begin(); i != mTextRows.end(); i++) -- cgit v1.2.3-70-g09d2