From bae07b95e795d4ef986373c978d1718061d4ac59 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 23 Jan 2018 11:28:04 +0100 Subject: [PATCH] src/gui/components/cc_frm_button.cpp/h: use CComponentsPicture only CComponentsPictureScalable not longer required --- src/gui/components/cc_frm_button.cpp | 2 +- src/gui/components/cc_frm_button.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/components/cc_frm_button.cpp b/src/gui/components/cc_frm_button.cpp index 9bea700a0..81df0ffdb 100644 --- a/src/gui/components/cc_frm_button.cpp +++ b/src/gui/components/cc_frm_button.cpp @@ -151,7 +151,7 @@ void CComponentsButton::initIcon() int y_icon = 0; int h_icon = 0; if (cc_btn_icon_obj == NULL){ - cc_btn_icon_obj = new CComponentsPictureScalable(fr_thickness, 0, cc_btn_icon, this); + cc_btn_icon_obj = new CComponentsPicture(fr_thickness, 0, cc_btn_icon, this); cc_btn_icon_obj->SetTransparent(CFrameBuffer::TM_BLACK); cc_btn_icon_obj->doPaintBg(false); } diff --git a/src/gui/components/cc_frm_button.h b/src/gui/components/cc_frm_button.h index 7989542bb..0a78dcf4c 100644 --- a/src/gui/components/cc_frm_button.h +++ b/src/gui/components/cc_frm_button.h @@ -48,7 +48,7 @@ class CComponentsButton : public CComponentsFrmChain, public CCTextScreen { protected: ///object: picture object - CComponentsPictureScalable *cc_btn_icon_obj; + CComponentsPicture *cc_btn_icon_obj; ///object: label object CComponentsLabel *cc_btn_text_obj;