fix typo / add default progressbar width

This commit is contained in:
TangoCash
2022-04-30 16:31:45 +02:00
committed by Thilo Graf
parent 8844736ef1
commit 26e4daae1e
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_pb_x = cch_offset;
cch_pb_w = 100;
cch_pb_w = PROGRESSBAR_WIDTH;
cch_pb_percent = 0;
cch_pb_enable = false;

View File

@@ -58,7 +58,7 @@ class CComponentsSlider : public CComponentsForm
void initCCSlItems();
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& max_value = 100,
CComponentsForm *parent = NULL,

View File

@@ -1378,7 +1378,9 @@ const time_settings_struct_t handling_infobar_setting[SNeutrinoSettings::HANDLIN
#define SIDEBAR_WIDTH CFrameBuffer::getInstance()->scale2Res(40)
#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