I hate math

This commit is contained in:
Steven Tracey 2024-11-20 17:27:43 -05:00
parent dd053c62bd
commit 4c738790ae

View File

@ -168,7 +168,7 @@ int draw() {
Debug("Time Left: %d\n", i);
double percentLeft = ((double)i / (double)(30 * 1000));
Debug("Percent Left: %d\n", percentLeft);
progBarEndIndex = (int)(228 * percentLeft);
progBarEndIndex = 228 - ((int)(228 * percentLeft));
Debug("Progress Bar Start: %d\nProgress Bar End: %d\n", progBarCurrentIndex, progBarEndIndex);
Paint_ClearWindows(progBarCurrentIndex, 111, progBarEndIndex, 93, WHITE);
while (progBarCurrentIndex < progBarEndIndex) {