From ff97b7d25fe99a816122a90833f223e3f6f6e0da Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 4 Jan 2016 22:46:07 +0100 Subject: [PATCH] CComponentsButton: fix transparecny of button icon Background was black for some icons --- src/gui/components/cc_frm_button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_frm_button.cpp b/src/gui/components/cc_frm_button.cpp index 057567c5f..38087c79a 100644 --- a/src/gui/components/cc_frm_button.cpp +++ b/src/gui/components/cc_frm_button.cpp @@ -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