infoviewer_bb: fix offset for first status-icon

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: 04eeb5d65b
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-29 (Wed, 29 Nov 2017)

Origin message was:
------------------
- infoviewer_bb: fix offset for first status-icon

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
vanhofen
2017-11-29 10:47:34 +01:00
committed by Thilo Graf
parent fad721c02c
commit 07bcc0705a

View File

@@ -153,6 +153,7 @@ void CInfoViewerBB::getBBIconInfo()
BBarFontY = BBarY + InfoHeightY_Info - (InfoHeightY_Info - g_Font[SNeutrinoSettings::FONT_TYPE_MENU_FOOT]->getHeight()) / 2; /* center in buttonbar */
bbIconMinX = g_InfoViewer->BoxEndX - OFFSET_INNER_MID;
bool isRadioMode = (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_radio || CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio);
bool firstIcon = true;
for (int i = 0; i < CInfoViewerBB::ICON_MAX; i++) {
int w = 0, h = 0;
@@ -194,8 +195,10 @@ void CInfoViewerBB::getBBIconInfo()
break;
}
if (iconView) {
if (i > 0)
bbIconMinX -= OFFSET_INNER_MIN;
if (firstIcon)
firstIcon = false;
else
bbIconMinX -= OFFSET_INNER_SMALL;
bbIconMinX -= w;
bbIconInfo[i].x = bbIconMinX;
bbIconInfo[i].h = h;