diff --git a/src/gui/widget/helpbox.cpp b/src/gui/widget/helpbox.cpp index cea87e3e3..66cd9d4f2 100644 --- a/src/gui/widget/helpbox.cpp +++ b/src/gui/widget/helpbox.cpp @@ -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); } diff --git a/src/gui/widget/hintbox.cpp b/src/gui/widget/hintbox.cpp index 557f87b76..5584c477e 100644 --- a/src/gui/widget/hintbox.cpp +++ b/src/gui/widget/hintbox.cpp @@ -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