mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
CComponentsForm: using better variable names in paintCCItems()
This commit is contained in:
@@ -1580,20 +1580,20 @@ void CComponentsForm::paintCCItems()
|
|||||||
// int h_tmp = (height-2*fr_thickness)/items_count;
|
// int h_tmp = (height-2*fr_thickness)/items_count;
|
||||||
|
|
||||||
for(size_t i=0; i<items_count; i++) {
|
for(size_t i=0; i<items_count; i++) {
|
||||||
//get current item position
|
//cache original item position
|
||||||
int ccx = v_cc_items[i]->getXPos();
|
int x_item = v_cc_items[i]->getXPos();
|
||||||
int ccy = v_cc_items[i]->getYPos();
|
int y_item = v_cc_items[i]->getYPos();
|
||||||
|
|
||||||
//set adapted position onto form
|
//set adapted position onto form
|
||||||
v_cc_items[i]->setXPos(x_tmp+ccx);
|
v_cc_items[i]->setXPos(x_tmp+x_item);
|
||||||
v_cc_items[i]->setYPos(y_tmp+ccy);
|
v_cc_items[i]->setYPos(y_tmp+y_item);
|
||||||
|
|
||||||
//paint element without saved screen!
|
//paint element without saved screen!
|
||||||
v_cc_items[i]->paint(CC_SAVE_SCREEN_NO);
|
v_cc_items[i]->paint(CC_SAVE_SCREEN_NO);
|
||||||
|
|
||||||
//restore position
|
//restore position
|
||||||
v_cc_items[i]->setXPos(ccx);
|
v_cc_items[i]->setXPos(x_item);
|
||||||
v_cc_items[i]->setYPos(ccy);
|
v_cc_items[i]->setYPos(y_item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user