From a7b397545f45f9d7c4c4efdabba6e34e57102a1b Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 29 Jan 2017 19:43:14 +0100 Subject: [PATCH] CVolumeBar: use OFFSET_INNER_SMALL instead static value for item offset Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/8e9be4ab6030a6c962a72fb8cd5d69261d698019 Author: Thilo Graf Date: 2017-01-29 (Sun, 29 Jan 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/volumebar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/volumebar.cpp b/src/gui/volumebar.cpp index 99c971c81..b9a25ca16 100644 --- a/src/gui/volumebar.cpp +++ b/src/gui/volumebar.cpp @@ -48,7 +48,7 @@ void CVolumeBar::initVarVolumeBar() { col_body = COL_MENUCONTENT_PLUS_0; corner_rad = CORNER_RADIUS_MID; - vb_item_offset = 4; + vb_item_offset = OFFSET_INNER_SMALL; height = g_settings.volume_size; //default height //assume volume value as pointer to global setting @@ -91,7 +91,7 @@ void CVolumeBar::initVolumeBarSize() vb_pbh = height-4*vb_item_offset; //result for width - width = (vb_icon_w + vb_pbw + vb_digit_w) + 4*vb_item_offset; + width = (vb_icon_w + vb_pbw + vb_digit_w) + 4*vb_item_offset + corner_rad/2; //adapt x-pos vb_pbx = vb_item_offset + vb_icon_w + vb_item_offset;