cc_frm.cpp, cc_frm_button.cpp: remove unread stored variables

Origin commit data
------------------
Commit: fe6a24351b
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-08-28 (Mon, 28 Aug 2017)
This commit is contained in:
2017-08-28 12:16:45 +02:00
parent 4e5f95d391
commit fbb0fc68b0
2 changed files with 6 additions and 5 deletions

View File

@@ -378,7 +378,7 @@ void CComponentsForm::paintCCItems()
size_t items_count = v_cc_items.size(); size_t items_count = v_cc_items.size();
//using of real x/y values to paint items if this text object is bound in a parent form //using of real x/y values to paint items if this text object is bound in a parent form
int this_x = x, auto_x = x, this_y = y, auto_y = y, this_w = width; int this_x = x, auto_x = x, this_y = y, auto_y = y, this_w = 0;
int w_parent_frame = 0; int w_parent_frame = 0;
if (cc_parent){ if (cc_parent){
this_x = auto_x = cc_xr; this_x = auto_x = cc_xr;
@@ -441,7 +441,7 @@ void CComponentsForm::paintCCItems()
} }
//move item x-position, if we have a frame on parent, TODO: other constellations not considered at the moment //move item x-position, if we have a frame on parent, TODO: other constellations not considered at the moment
w_parent_frame = xpos <= fr_thickness ? fr_thickness : 0; w_parent_frame = xpos <= fr_thickness ? fr_thickness : w_parent_frame;
//set required x-position to item: //set required x-position to item:
//append vertical //append vertical
@@ -461,7 +461,7 @@ void CComponentsForm::paintCCItems()
} }
//move item y-position, if we have a frame on parent, TODO: other constellations not considered at the moment //move item y-position, if we have a frame on parent, TODO: other constellations not considered at the moment
w_parent_frame = ypos <= fr_thickness ? fr_thickness : 0; w_parent_frame = ypos <= fr_thickness ? fr_thickness : w_parent_frame;
//set required y-position to item //set required y-position to item
//append hor //append hor

View File

@@ -147,14 +147,15 @@ void CComponentsButton::initIcon()
if (pos == string::npos) if (pos == string::npos)
cc_btn_icon = frameBuffer->getIconPath(cc_btn_icon); cc_btn_icon = frameBuffer->getIconPath(cc_btn_icon);
int y_icon = 0;
int h_icon = 0;
if (cc_btn_icon_obj == NULL){ if (cc_btn_icon_obj == NULL){
cc_btn_icon_obj = new CComponentsPictureScalable(fr_thickness, 0, cc_btn_icon, this); cc_btn_icon_obj = new CComponentsPictureScalable(fr_thickness, 0, cc_btn_icon, this);
cc_btn_icon_obj->SetTransparent(CFrameBuffer::TM_BLACK); cc_btn_icon_obj->SetTransparent(CFrameBuffer::TM_BLACK);
cc_btn_icon_obj->doPaintBg(false); cc_btn_icon_obj->doPaintBg(false);
} }
int y_icon = cc_btn_icon_obj->getYPos(); h_icon = cc_btn_icon_obj->getHeight();
int h_icon = cc_btn_icon_obj->getHeight();
//get required icon height //get required icon height
int h_max = height-2*fr_thickness; int h_max = height-2*fr_thickness;