mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-06 22:04:10 +08:00
修正编译失败的问题
This commit is contained in:
parent
1213d9b5e8
commit
4069dcb53d
@ -77,7 +77,7 @@ const char *acf_put_text(int x, int y, int width, int height, int maxwidth, u8 c
|
|||||||
|
|
||||||
static void screen_clean()
|
static void screen_clean()
|
||||||
{
|
{
|
||||||
memset(consoleGet()->frameBuffer, 0, WINDOW_WIDTH*WINDOW_HEIGHT*sizeof(uint16_t));
|
memset(GFX_getFramebuffer(SCREEN_BOT), 0, WINDOW_WIDTH*WINDOW_HEIGHT*sizeof(uint16_t));
|
||||||
if( ta[0] ) acf_put_text( 5, 215, WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_WIDTH-10, ATP_COLOR_CYAN, ATP_PLACEMENT_LEFT, ta );
|
if( ta[0] ) acf_put_text( 5, 215, WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_WIDTH-10, ATP_COLOR_CYAN, ATP_PLACEMENT_LEFT, ta );
|
||||||
if( tb[0] ) acf_put_text( 5, 215, WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_WIDTH-10, ATP_COLOR_CYAN, ATP_PLACEMENT_RIGHT, tb );
|
if( tb[0] ) acf_put_text( 5, 215, WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_WIDTH-10, ATP_COLOR_CYAN, ATP_PLACEMENT_RIGHT, tb );
|
||||||
}
|
}
|
||||||
@ -87,7 +87,8 @@ 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 )
|
if( x < 0 || y < 0 || x+w >= WINDOW_WIDTH || y+h >=WINDOW_HEIGHT )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for( int i=0; i < w; i++ ) memset( consoleGet()->frameBuffer + WINDOW_HEIGHT*(i+x) + (WINDOW_HEIGHT-1-y-h), 0, h*sizeof(u16) );
|
int location= GFX_getFramebuffer(SCREEN_BOT);
|
||||||
|
for( int i=0; i < w; i++ ) memset( location + WINDOW_HEIGHT*(i+x) + (WINDOW_HEIGHT-1-y-h), 0, h*sizeof(u16) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// wait key pressed, if power key is pressed, return 0
|
// wait key pressed, if power key is pressed, return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user