mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
CComponentsInfoBox: ensure new init of picture
Delete causes a clean background because it is possible that remnants are
left after changed font size.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9af63bdc72
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-25 (Mon, 25 Mar 2013)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -92,10 +92,9 @@ void CComponentsInfoBox::initVarInfobox()
|
|||||||
void CComponentsInfoBox::paintPicture()
|
void CComponentsInfoBox::paintPicture()
|
||||||
{
|
{
|
||||||
//init and set icon paint position
|
//init and set icon paint position
|
||||||
if (pic == NULL)
|
if (pic)
|
||||||
pic = new CComponentsPicture(x+fr_thickness+x_offset, y+fr_thickness/*+y_offset*/, 0, 0, "");
|
delete pic;
|
||||||
pic->setXPos(x+fr_thickness+x_offset);
|
pic = new CComponentsPicture(x+fr_thickness+x_offset, y+fr_thickness/*+y_offset*/, 0, 0, "");
|
||||||
pic->setYPos(y+fr_thickness);
|
|
||||||
|
|
||||||
//define icon
|
//define icon
|
||||||
pic->setPicture(pic_name);
|
pic->setPicture(pic_name);
|
||||||
|
Reference in New Issue
Block a user