CComponentsButton: fix transparecny of button icon

Background was black for some icons
This commit is contained in:
2016-01-04 22:46:07 +01:00
committed by svenhoefer
parent c11ea8f50b
commit ff97b7d25f

View File

@@ -150,7 +150,7 @@ void CComponentsButton::initIcon()
cc_btn_icon = frameBuffer->getIconBasePath() + "/" + cc_btn_icon + ".png";
cc_btn_icon_obj = new CComponentsPictureScalable(fr_thickness, y_icon, cc_btn_icon, this);
cc_btn_icon_obj->SetTransparent(CFrameBuffer::TM_BLACK);
int h_icon = cc_btn_icon_obj->getHeight();
//get required icon height