Fix indicator bar position (#7)

Closes #6
This commit is contained in:
Jan Šimek 2022-05-22 03:55:49 -07:00 committed by GitHub
parent be81049ff5
commit 0c61f74ba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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],