From ebc1af345de113389fd06f92e856b384b0a330b8 Mon Sep 17 00:00:00 2001 From: unitraxx Date: Mon, 15 Jul 2013 00:32:19 +0000 Subject: [PATCH] Remove the tab hack completely git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13225 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/guiengine/scalable_font.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/guiengine/scalable_font.cpp b/src/guiengine/scalable_font.cpp index 26cf20c3f..572f33a1f 100644 --- a/src/guiengine/scalable_font.cpp +++ b/src/guiengine/scalable_font.cpp @@ -526,14 +526,6 @@ void ScalableFont::draw(const core::stringw& text, { wchar_t c = text[i]; - //hack: one tab character is supported, it moves the cursor to the tab stop - if (c == L'\t') - { - offset.X = (int)(position.UpperLeftCorner.X + - position.getWidth()*m_tab_stop); - continue; - } - if (c == L'\r' || // Windows breaks c == L'\n' ) // Unix breaks {