From 5323faab57364f98f91ecd7ac3bbf067e1b39aec Mon Sep 17 00:00:00 2001 From: Steven Tracey Date: Wed, 20 Nov 2024 14:46:35 -0500 Subject: [PATCH] Worky plea --- c/src/p2fa.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/c/src/p2fa.c b/c/src/p2fa.c index d82cdae..edf2bf4 100644 --- a/c/src/p2fa.c +++ b/c/src/p2fa.c @@ -69,8 +69,9 @@ int draw() { startTime = clock(); Debug("Time Left: %dms\n", i); int progWidth = (int)(((double)i / (double)(30 * 1000)) * 240); - Debug("Progress bar width: %d", progWidth); - Paint_DrawRectangle(10, 112, progWidth, 92, BLACK, DOT_PIXEL_1X1, DRAW_FILL_FULL); + Debug("Progress bar width: %d\n", progWidth); + Paint_DrawRectangle(10, 112, 240 - progWidth, 102, BLACK, DOT_PIXEL_1X1, DRAW_FILL_FULL); + Paint_DrawRectangle(10, 102, 240 - progWidth, 92, WHITE, DOT_PIXEL_1X1, DRAW_FILL_FULL); EPD_2in13_V4_Display_Partial(BlackImage); endTime = clock(); elapsedTime = (double)(endTime - startTime) / CLOCKS_PER_SEC;