fix typo / add default progressbar width

Origin commit data
------------------
Branch: ni/coolstream
Commit: 0924849d6f
Author: TangoCash <eric@loxat.de>
Date: 2022-04-30 (Sat, 30 Apr 2022)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2022-04-30 16:31:45 +02:00
committed by vanhofen
parent 8b30220540
commit 712ee698ec
3 changed files with 5 additions and 3 deletions

View File

@@ -173,7 +173,7 @@ void CComponentsHeader::initVarHeader( const int& x_pos, const int& y_pos, const
cch_cl_enable_run = false; cch_cl_enable_run = false;
cch_pb_x = cch_offset; cch_pb_x = cch_offset;
cch_pb_w = 100; cch_pb_w = PROGRESSBAR_WIDTH;
cch_pb_percent = 0; cch_pb_percent = 0;
cch_pb_enable = false; cch_pb_enable = false;

View File

@@ -58,7 +58,7 @@ class CComponentsSlider : public CComponentsForm
void initCCSlItems(); void initCCSlItems();
public: public:
CComponentsSlider( const int& x_pos = 0, const int& y_pos = 0, const int& w = SLIDER_WIDHT, const int& h = SLIDER_HEIGHT, CComponentsSlider( const int& x_pos = 0, const int& y_pos = 0, const int& w = SLIDER_WIDTH, const int& h = SLIDER_HEIGHT,
const int& current_value = 0, const int& current_value = 0,
const int& max_value = 100, const int& max_value = 100,
CComponentsForm *parent = NULL, CComponentsForm *parent = NULL,

View File

@@ -1380,7 +1380,9 @@ const time_settings_struct_t handling_infobar_setting[SNeutrinoSettings::HANDLIN
#define SIDEBAR_WIDTH CFrameBuffer::getInstance()->scale2Res(40) #define SIDEBAR_WIDTH CFrameBuffer::getInstance()->scale2Res(40)
#define SLIDER_HEIGHT CFrameBuffer::getInstance()->scale2Res(22) #define SLIDER_HEIGHT CFrameBuffer::getInstance()->scale2Res(22)
#define SLIDER_WIDHT CFrameBuffer::getInstance()->scale2Res(120) #define SLIDER_WIDTH CFrameBuffer::getInstance()->scale2Res(120)
#define PROGRESSBAR_WIDTH CFrameBuffer::getInstance()->scale2Res(100)
#define BIGFONT_FACTOR 1.5 #define BIGFONT_FACTOR 1.5