diff --git a/c/src/p2fa.c b/c/src/p2fa.c index 7d3c63b..8cc61f6 100644 --- a/c/src/p2fa.c +++ b/c/src/p2fa.c @@ -151,7 +151,7 @@ int draw() { Debug("Code: %s\n", code); Paint_DrawString(5, 5, code, &Font24, WHITE, BLACK); - Paint_DrawRectangle(10, 112, 240, 92, BLACK, DOT_PIXEL_1X1, DRAW_FILL_FULL); + Paint_DrawRectangle(10, 112, 240, 92, WHITE, DOT_PIXEL_1X1, DRAW_FILL_FULL); EPD_2in13_V4_Display_Base(BlackImage); Paint_NewImage(BlackImage, EPD_2in13_V4_WIDTH, EPD_2in13_V4_HEIGHT, 90, WHITE); @@ -168,6 +168,7 @@ int draw() { Debug("Time Left: %d\n", i); double percentLeft = ((double)i / (double)(30 * 1000)); progBarEndIndex = (int)(228 * percentLeft); + Paint_ClearWindows(progBarCurrentIndex, 111, progBarEndIndex, 93, WHITE); while (progBarCurrentIndex < progBarEndIndex) { Paint_DrawLine(progBarCurrentIndex, 111, progBarCurrentIndex, 93, BLACK, DOT_PIXEL_1X1, LINE_STYLE_SOLID); ++progBarCurrentIndex;