From e0fb9cd4ab1484e000a349ab6636a2afccc87258 Mon Sep 17 00:00:00 2001 From: Charlez Kwan Date: Sun, 26 Jan 2020 12:28:25 +0100 Subject: [PATCH] main: paint_clear before putting anything into buffer: solve the residue pixel problem --- Src/main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Src/main.c b/Src/main.c index 59d81e9..03086aa 100644 --- a/Src/main.c +++ b/Src/main.c @@ -196,6 +196,18 @@ int main(void) sPaint_time.Sec = sTime.Seconds; // printf("hour %i :",sPaint_time.Hour); // printf("min %i :",sPaint_time.Min); + if(system_mode!=Offscreen){ + + Paint_Clear(WHITE); + Paint_DrawArray(); + Paint_DrawCurrent(); + Paint_Selector(System_CustomHeartbeat(2),selector_pos, system_mode); + + }else{ + Paint_Clear(WHITE); + Paint_DrawString_EN(0,0,"You can remove the monitor",&Font16,WHITE,BLACK); + } + Paint_Drawonoff(System_fire()); Paint_DrawArray(); Paint_DrawCurrent();