mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
Helpbox: fix possible transparent holes behind images
This commit is contained in:
@@ -97,7 +97,9 @@ void Helpbox::addLine(const std::string& icon, const std::string& text, const in
|
||||
if (!icon.empty()){
|
||||
picon = new CComponentsPicture (0, 0, icon);
|
||||
w_picon = picon->getHeight();
|
||||
picon->doPaintBg(false);
|
||||
picon->setYPos(line->getHeight()/2 - w_picon/2);
|
||||
picon->SetTransparent(CFrameBuffer::TM_BLACK);
|
||||
line->addCCItem(picon);
|
||||
}
|
||||
|
||||
|
@@ -221,6 +221,7 @@ void CHintBox::addHintItem(const std::string& Text, const int& text_mode, const
|
||||
//init side picon object
|
||||
CComponentsPicture *obj_picon = new CComponentsPicture(0, 0, Picon);
|
||||
obj_picon->doPaintBg(false);
|
||||
obj_picon->SetTransparent(CFrameBuffer::TM_BLACK);
|
||||
int w_picon = obj_picon->getWidth();
|
||||
|
||||
//init text item object
|
||||
|
Reference in New Issue
Block a user