cc_frm: consider frame width with center mode

Origin commit data
------------------
Branch: ni/coolstream
Commit: 7ce4ceb449
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-12-07 (Mon, 07 Dec 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2020-12-07 23:28:52 +01:00
committed by vanhofen
parent 4a95d07e07
commit 0180998bce

View File

@@ -500,7 +500,7 @@ void CComponentsForm::paintCCItems()
}
//positionize vertical centered
else if (xpos == CC_CENTERED){
auto_x = this_w/2 - w_item/2;
auto_x = (this_w - 2* fr_thickness)/2 - w_item/2;
v_cc_items.at(i)->setRealXPos(this_x + auto_x);
}
else{
@@ -518,7 +518,7 @@ void CComponentsForm::paintCCItems()
}
//positionize hor centered
else if (ypos == CC_CENTERED){
auto_y = height/2 - h_item/2;
auto_y = (height - 2* fr_thickness)/2 - h_item/2;
v_cc_items.at(i)->setRealYPos(this_y + auto_y);
}
else{