From 34667d2c9cc3472f5792b694df8e5d8674ff2d44 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Wed, 19 Oct 2022 21:10:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/atp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/arm11/atp.c b/source/arm11/atp.c index 951302d..16564a3 100644 --- a/source/arm11/atp.c +++ b/source/arm11/atp.c @@ -88,8 +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; - int location= consoleGet()->frameBuffer; - for( int i=0; i < w; i++ ) memset( location + WINDOW_HEIGHT*(i+x) + (WINDOW_HEIGHT-1-y-h), 0, h*sizeof(u16) ); + for( int i=0; i < w; i++ ) memset( consoleGet()->frameBuffer + WINDOW_HEIGHT*(i+x) + (WINDOW_HEIGHT-1-y-h), 0, h*sizeof(u16) ); } // wait key pressed, if power key is pressed, return 0