src/gui/components/cc_frm_button.cpp/h: use CComponentsPicture only

CComponentsPictureScalable not longer required


Origin commit data
------------------
Commit: bc510c0996
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-01-23 (Tue, 23 Jan 2018)
This commit is contained in:
2018-01-23 18:06:28 +01:00
committed by vanhofen
parent 072e6898f4
commit 9425007b49
2 changed files with 2 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ void CComponentsButton::initIcon()
int y_icon = 0; int y_icon = 0;
int h_icon = 0; int h_icon = 0;
if (cc_btn_icon_obj == NULL){ 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->SetTransparent(CFrameBuffer::TM_BLACK);
cc_btn_icon_obj->doPaintBg(false); cc_btn_icon_obj->doPaintBg(false);
} }

View File

@@ -48,7 +48,7 @@ class CComponentsButton : public CComponentsFrmChain, public CCTextScreen
{ {
protected: protected:
///object: picture object ///object: picture object
CComponentsPictureScalable *cc_btn_icon_obj; CComponentsPicture *cc_btn_icon_obj;
///object: label object ///object: label object
CComponentsLabel *cc_btn_text_obj; CComponentsLabel *cc_btn_text_obj;