infoviewer_bb: fix offset for first status-icon

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

Origin message was:
------------------
- infoviewer_bb: fix offset for first status-icon
This commit is contained in:
vanhofen
2017-11-29 10:47:34 +01:00
parent 0063f7c008
commit 32b9af3d96

View File

@@ -171,6 +171,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;
@@ -212,8 +213,10 @@ void CInfoViewerBB::getBBIconInfo()
break;
}
if (iconView) {
if (i > 0)
bbIconMinX -= OFFSET_INNER_SMALL; //NI
if (firstIcon)
firstIcon = false;
else
bbIconMinX -= OFFSET_INNER_SMALL;
bbIconMinX -= w;
bbIconInfo[i].x = bbIconMinX;
bbIconInfo[i].h = h;