mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user