From 00d8f57800042a324795b30dd35b21d67d47a2aa Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Tue, 10 Feb 2009 13:15:45 -0700 Subject: Fixed font glyph caching. Signed-off-by: Ira Rice --- src/gui/truetypefont.cpp | 4 ---- src/gui/truetypefont.h | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/gui') diff --git a/src/gui/truetypefont.cpp b/src/gui/truetypefont.cpp index 6e8efeff..2d32a213 100644 --- a/src/gui/truetypefont.cpp +++ b/src/gui/truetypefont.cpp @@ -19,8 +19,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include - #include #include "truetypefont.h" @@ -75,8 +73,6 @@ class TextChunk gcn::Color color; }; -// Word surfaces cache -static std::list cache; typedef std::list::iterator CacheIterator; static int fontCounter; diff --git a/src/gui/truetypefont.h b/src/gui/truetypefont.h index bd338d84..017bc4fc 100644 --- a/src/gui/truetypefont.h +++ b/src/gui/truetypefont.h @@ -22,6 +22,7 @@ #ifndef TRUETYPEFONT_H #define TRUETYPEFONT_H +#include #include #include @@ -31,6 +32,8 @@ #include #endif +class TextChunk; + /** * A wrapper around SDL_ttf for allowing the use of TrueType fonts. * @@ -63,6 +66,9 @@ class TrueTypeFont : public gcn::Font private: TTF_Font *mFont; + + // Word surfaces cache + std::list cache; }; #endif -- cgit v1.2.3-70-g09d2