From 38ffb5fd292755eaa0dfd3d0b6fea43710242133 Mon Sep 17 00:00:00 2001 From: Steven Tracey Date: Wed, 20 Nov 2024 16:59:06 -0500 Subject: [PATCH] Colors are weird --- c/src/p2fa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c/src/p2fa.c b/c/src/p2fa.c index f0e54a6..1fc84a1 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); @@ -186,7 +186,7 @@ int draw() { double percentLeft = ((double)i / (double)(30 * 1000)); progBarEndIndex = (int)(228 * percentLeft); while (progBarCurrentIndex < progBarEndIndex) { - Paint_DrawLine(progBarCurrentIndex, 111, progBarCurrentIndex, 93, WHITE, DOT_PIXEL_1X1, LINE_STYLE_SOLID); + Paint_DrawLine(progBarCurrentIndex, 111, progBarCurrentIndex, 93, BLACK, DOT_PIXEL_1X1, LINE_STYLE_SOLID); ++progBarCurrentIndex; } EPD_2in13_V4_Display_Partial(BlackImage);