mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 18:31:22 +02:00
- move ENABLE_CHANGE_OSD_RESOLUTION to scale2Res() function
This commit is contained in:
@@ -53,10 +53,7 @@ void CVolumeBar::initVarVolumeBar()
|
||||
col_body = COL_MENUCONTENT_PLUS_0;
|
||||
corner_rad = CORNER_RADIUS_MID;
|
||||
vb_item_offset = OFFSET_INNER_SMALL;
|
||||
height = g_settings.volume_size; //default height
|
||||
#ifdef ENABLE_CHANGE_OSD_RESOLUTION
|
||||
height = CFrameBuffer::getInstance()->scale2Res(height);
|
||||
#endif
|
||||
height = CFrameBuffer::getInstance()->scale2Res(g_settings.volume_size);
|
||||
|
||||
//assume volume value as pointer to global setting
|
||||
vb_vol = &g_settings.current_volume;
|
||||
@@ -94,10 +91,7 @@ void CVolumeBar::initVolumeBarSize()
|
||||
//vb_digit_w += corner_rad/2;
|
||||
|
||||
//scale
|
||||
vb_pbw = 200;
|
||||
#ifdef ENABLE_CHANGE_OSD_RESOLUTION
|
||||
vb_pbw = CFrameBuffer::getInstance()->scale2Res(vb_pbw);
|
||||
#endif
|
||||
vb_pbw = CFrameBuffer::getInstance()->scale2Res(200);
|
||||
vb_pbh = height-4*vb_item_offset;
|
||||
|
||||
//result for width
|
||||
@@ -368,10 +362,7 @@ void CVolumeHelper::initVolBarSize()
|
||||
icon_height += 2;
|
||||
icon_width += 8;
|
||||
g_settings.volume_size = max(g_settings.volume_size, icon_height);
|
||||
vol_height = g_settings.volume_size;
|
||||
#ifdef ENABLE_CHANGE_OSD_RESOLUTION
|
||||
vol_height = CFrameBuffer::getInstance()->scale2Res(vol_height);
|
||||
#endif
|
||||
vol_height = CFrameBuffer::getInstance()->scale2Res(g_settings.volume_size);
|
||||
|
||||
if (g_settings.volume_digits) {
|
||||
CNeutrinoFonts *cnf = CNeutrinoFonts::getInstance();
|
||||
|
Reference in New Issue
Block a user