From 53e57bbd10963ff20af0d5cb6766dd2391c1360c Mon Sep 17 00:00:00 2001 From: cosmosninja Date: Wed, 16 Jan 2008 03:40:38 +0000 Subject: [PATCH] Changed the value of CENTER_OF_SCREEN to be lower than the smallest possible scrolling value. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1400 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/gui/font.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/font.hpp b/src/gui/font.hpp index ed664e3c9..faf81f74f 100644 --- a/src/gui/font.hpp +++ b/src/gui/font.hpp @@ -31,7 +31,8 @@ private: fntRenderer *m_text_out; public: - const static int CENTER_OF_SCREEN=-1; + //CENTER_OF_SCREEN has to be bigger or smaller than Widget::MAX_SCROLL + const static int CENTER_OF_SCREEN=-1000001; enum FontSize {SMALL=18, MEDIUM=24, LARGE=30 }; Font(const char* fontname); Font(const std::string &fontname) { Font(fontname.c_str()); }