From 9735c670fd1cedb537668a084c6560ef1480be71 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 26 Apr 2013 18:59:08 +0200 Subject: [PATCH] CComponentsText: init CComponentsText without paint of text background This avoids unnecessary render of backgrounds in textboxes. If it does, so it's possible to enable it subsequently with doPaintTextBoxBg(). --- src/gui/components/cc_item_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_item_text.cpp b/src/gui/components/cc_item_text.cpp index abf3ae89d..13d518f2f 100644 --- a/src/gui/components/cc_item_text.cpp +++ b/src/gui/components/cc_item_text.cpp @@ -95,7 +95,7 @@ void CComponentsText::initVarText() ct_text_mode = CTextBox::AUTO_WIDTH; ct_col_text = COL_MENUCONTENT; ct_text_sent = false; - ct_paint_textbg = true; + ct_paint_textbg = false; ct_force_text_paint = false; }