main: paint_clear before putting anything into buffer: solve the residue pixel problem

This commit is contained in:
Charlez Kwan 2020-01-26 12:28:25 +01:00
parent e4e0066412
commit e0fb9cd4ab

View file

@ -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();