mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- cc_frm_header: try to fix next_item detection
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -323,20 +323,12 @@ void CComponentsHeader::initLogo()
|
|||||||
*/
|
*/
|
||||||
if (next_item)
|
if (next_item)
|
||||||
{
|
{
|
||||||
if (next_item->getItemType() == CC_ITEMTYPE_FRM_CLOCK)
|
if (cch_pb_obj)
|
||||||
{
|
next_item = cch_pb_obj;
|
||||||
/*
|
else if (cch_cl_obj)
|
||||||
* Either clock is present or buttons are enabled,
|
next_item = cch_cl_obj;
|
||||||
* different order of objects are required, not optimal
|
else
|
||||||
* but works at the moment.
|
next_item = cch_btn_obj;
|
||||||
*/
|
|
||||||
if (cch_pb_obj)
|
|
||||||
next_item = cch_pb_obj;
|
|
||||||
else if (cch_cl_obj)
|
|
||||||
next_item = cch_cl_obj;
|
|
||||||
else
|
|
||||||
next_item = cch_btn_obj;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -383,8 +375,10 @@ void CComponentsHeader::initLogo()
|
|||||||
if (cch_caption_align & CC_TITLE_RIGHT)
|
if (cch_caption_align & CC_TITLE_RIGHT)
|
||||||
{
|
{
|
||||||
if (next_item)
|
if (next_item)
|
||||||
|
{
|
||||||
if (x_logo + w_logo >= next_item->getXPos())
|
if (x_logo + w_logo >= next_item->getXPos())
|
||||||
x_logo = next_item->getXPos() - logo_space/2 - w_logo/2;
|
x_logo = next_item->getXPos() - logo_space/2 - w_logo/2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user