From 395b000bee0cfd5df4ae8d6eac83a451838ccdb8 Mon Sep 17 00:00:00 2001 From: unitraxx Date: Mon, 15 Jul 2013 00:37:05 +0000 Subject: [PATCH] Removed the addons_screen references to the tab_stop method which were left behind git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13226 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/guiengine/scalable_font.cpp | 1 - src/guiengine/scalable_font.hpp | 6 ------ src/states_screens/addons_screen.cpp | 4 ---- 3 files changed, 11 deletions(-) diff --git a/src/guiengine/scalable_font.cpp b/src/guiengine/scalable_font.cpp index 572f33a1f..ddb5a65f1 100644 --- a/src/guiengine/scalable_font.cpp +++ b/src/guiengine/scalable_font.cpp @@ -32,7 +32,6 @@ ScalableFont::ScalableFont(IGUIEnvironment *env, const io::path& filename) m_fallback_kerning_width = 0; m_fallback_font_scale = 1.0f; m_scale = 1.0f; - m_tab_stop = 0.5f; m_is_hollow_copy = false; m_black_border = false; m_shadow = false; diff --git a/src/guiengine/scalable_font.hpp b/src/guiengine/scalable_font.hpp index c6aed9d81..85017b58d 100644 --- a/src/guiengine/scalable_font.hpp +++ b/src/guiengine/scalable_font.hpp @@ -61,9 +61,6 @@ class ScalableFont : public IGUIFontBitmap bool m_is_hollow_copy; bool m_rtl; - /** Position in range [0..1] of the single tab stop we support */ - float m_tab_stop; - public: LEAK_CHECK() @@ -145,9 +142,6 @@ public: void updateRTL(); - /** \param pos position of the tab stop, in range [0..1] */ - void setTabStop(float pos) { m_tab_stop = pos; } - private: struct SFontArea diff --git a/src/states_screens/addons_screen.cpp b/src/states_screens/addons_screen.cpp index 7450f8cbd..9df3e15d8 100644 --- a/src/states_screens/addons_screen.cpp +++ b/src/states_screens/addons_screen.cpp @@ -140,8 +140,6 @@ void AddonsScreen::init() getWidget("category")->setDeactivated(); - GUIEngine::getFont()->setTabStop(0.66f); - if(UserConfigParams::logAddons()) std::cout << "[addons] Using directory <" + file_manager->getAddonsDir() << ">\n"; @@ -188,8 +186,6 @@ void AddonsScreen::unloaded() void AddonsScreen::tearDown() { - // return tab stop to the center when leaving this screen!! - GUIEngine::getFont()->setTabStop(0.5f); } // ----------------------------------------------------------------------------