Helpbox: fix possible transparent holes behind images

This commit is contained in:
2016-10-09 17:11:43 +02:00
parent 1338ce2b8e
commit 8579758884
2 changed files with 3 additions and 0 deletions

View File

@@ -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);
}