把擦除区域换成白色看看

This commit is contained in:
anod 2022-10-17 14:10:27 +08:00
parent 265eef2a2e
commit a45ae7c64b

View File

@ -88,7 +88,7 @@ static void screen_clean_zone( int x, int y, int w, int h )
if( x < 0 || y < 0 || x+w >= WINDOW_WIDTH || y+h >=WINDOW_HEIGHT )
return;
for( int i=0; i < w; i++ ) memset( consoleGet()->frameBuffer + WINDOW_HEIGHT*(i+x) + (WINDOW_HEIGHT-1-y-h), 0, h );
for( int i=0; i < w; i++ ) memset( consoleGet()->frameBuffer + WINDOW_HEIGHT*(i+x) + (WINDOW_HEIGHT-1-y-h), 0xff, h*sizeof(u16) );
}
// wait key pressed, if power key is pressed, return 0