From e2a8eb4def53b82f5c1bc4aa35d4e91ae22d2b0f Mon Sep 17 00:00:00 2001 From: Gee Date: Tue, 31 Aug 2004 03:25:36 +0000 Subject: [PATCH] Removed some debug output in log only I need to see. This was SVN commit r1091. --- source/gui/CText.cpp | 6 +++++- source/gui/GUItext.cpp | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source/gui/CText.cpp b/source/gui/CText.cpp index 3a53ebcab2..a3bcef2e84 100755 --- a/source/gui/CText.cpp +++ b/source/gui/CText.cpp @@ -20,6 +20,7 @@ using namespace std; //------------------------------------------------------------------- CText::CText() { + AddSetting(GUIST_int, "buffer-zone"); AddSetting(GUIST_CGUIString, "caption"); AddSetting(GUIST_CStr, "font"); AddSetting(GUIST_bool, "scrollbar"); @@ -73,7 +74,10 @@ void CText::SetupText() if (scrollbar && GetScrollBar(0).GetStyle()) width -= GetScrollBar(0).GetStyle()->m_Width; - *m_GeneratedTexts[0] = GetGUI()->GenerateText(caption, font, width, 4, this); + + int buffer_zone=0; + GUI::GetSetting(this, "buffer-zone", buffer_zone); + *m_GeneratedTexts[0] = GetGUI()->GenerateText(caption, font, width, buffer_zone, this); // Setup scrollbar if (scrollbar) diff --git a/source/gui/GUItext.cpp b/source/gui/GUItext.cpp index 7befad3f42..61649ae066 100755 --- a/source/gui/GUItext.cpp +++ b/source/gui/GUItext.cpp @@ -533,7 +533,7 @@ void CGUIString::SetValue(const CStr& str) } } -#if 1 +#if 0 for (int i=0; i<(int)m_Words.size(); ++i) { LOG(NORMAL, LOG_CATEGORY, "m_Words[%d] = %d", i, m_Words[i]);