main: paint_clear before putting anything into buffer: solve the residue pixel problem
This commit is contained in:
parent
e4e0066412
commit
e0fb9cd4ab
1 changed files with 12 additions and 0 deletions
12
Src/main.c
12
Src/main.c
|
@ -196,6 +196,18 @@ int main(void)
|
||||||
sPaint_time.Sec = sTime.Seconds;
|
sPaint_time.Sec = sTime.Seconds;
|
||||||
// printf("hour %i :",sPaint_time.Hour);
|
// printf("hour %i :",sPaint_time.Hour);
|
||||||
// printf("min %i :",sPaint_time.Min);
|
// 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_DrawArray();
|
||||||
Paint_DrawCurrent();
|
Paint_DrawCurrent();
|
||||||
|
|
Loading…
Reference in a new issue