From 0c61f74ba990879135766892d7241ec7f300cf3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=A0imek?= Date: Sun, 22 May 2022 03:55:49 -0700 Subject: [PATCH] Fix indicator bar position (#7) Closes #6 --- src/interface.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/interface.cc b/src/interface.cc index 13bc579..337b450 100644 --- a/src/interface.cc +++ b/src/interface.cc @@ -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],