Fix indicator bar position

Closes #6
This commit is contained in:
Jan Šimek 2022-05-21 13:32:13 -07:00
parent 86d8a92ce0
commit 1e904d7437
1 changed files with 5 additions and 2 deletions

View File

@ -2475,8 +2475,11 @@ int indicatorBarRefresh()
}
if (count != 0) {
gIndicatorBarWindow = windowCreate(0,
screenGetHeight() - INTERFACE_BAR_HEIGHT - INDICATOR_BOX_HEIGHT - 1,
Rect interfaceBarWindowRect;
windowGetRect(gInterfaceBarWindow, &interfaceBarWindowRect);
gIndicatorBarWindow = windowCreate(interfaceBarWindowRect.left,
screenGetHeight() - INTERFACE_BAR_HEIGHT - INDICATOR_BOX_HEIGHT,
(INDICATOR_BOX_WIDTH - INDICATOR_BOX_CONNECTOR_WIDTH) * count,
INDICATOR_BOX_HEIGHT,
_colorTable[0],