From 4450984597ff6b40f70e194d55db5c5a27abb876 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 9 Nov 2012 15:31:17 +0100 Subject: [PATCH] CComponents: init ccitem vars in initVarBasic() --- src/gui/components/components.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/gui/components/components.cpp b/src/gui/components/components.cpp index 3d5bdef78..d44f0ea5f 100644 --- a/src/gui/components/components.cpp +++ b/src/gui/components/components.cpp @@ -73,9 +73,11 @@ void CComponents::initVarBasic() col_shadow = COL_MENUCONTENTDARK_PLUS_0; col_frame = COL_MENUCONTENT_PLUS_6; corner_type = CORNER_ALL; + corner_rad = 0; shadow = CC_SHADOW_OFF; shadow_w = SHADOW_OFFSET; - + fr_thickness = 0; + firstPaint = true; is_painted = false; frameBuffer = CFrameBuffer::getInstance(); @@ -181,10 +183,6 @@ void CComponentsItem::initVarItem() { //CComponents initVarBasic(); - - //CComponentsItem - corner_rad = 0; - fr_thickness = 0; } void CComponentsItem::paintInit(bool do_save_bg)