mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
CComponentsItem: remove unnecessary calculation of position with frame
This should be done in the arrangement of the container contents
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2aff49deea
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-22 (Sun, 22 Jun 2014)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -82,9 +82,8 @@ void CComponentsItem::paintInit(bool do_save_bg)
|
||||
//if item is bound on a parent form, we must use real x/y values and from parent form as reference
|
||||
int ix = x, iy = y;
|
||||
if (cc_parent){
|
||||
int w_parent_frame = cc_parent->getFrameThickness();
|
||||
ix = cc_xr + (x < w_parent_frame ? w_parent_frame : 0);
|
||||
iy = cc_yr + (y < w_parent_frame ? w_parent_frame : 0);
|
||||
ix = cc_xr;
|
||||
iy = cc_yr;
|
||||
}
|
||||
|
||||
comp_fbdata_t fbdata[] =
|
||||
|
Reference in New Issue
Block a user