mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
Helpbox: fix possible transparent holes behind images
Origin commit data
------------------
Commit: 8579758884
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-09 (Sun, 09 Oct 2016)
Origin message was:
------------------
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