mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-07 14:24:12 +08:00
修正上屏scaler=0不显示的问题
修改电池电量的显示位置
This commit is contained in:
parent
c7f0f4f342
commit
5d24797c89
@ -238,11 +238,11 @@ static atp_pageopt_t config_adjust( atp_callerdata_t, atp_counter_t index, atp_b
|
||||
atp_error_t oaf_config_page()
|
||||
{
|
||||
u8 base[sizeof(g_oafConfig)];
|
||||
char title[64];
|
||||
char title[80];
|
||||
memcpy( base, &g_oafConfig, sizeof(g_oafConfig) );
|
||||
OafConfig *prev = (OafConfig*)&base[0];
|
||||
|
||||
ee_snprintf(title, sizeof(title), "参数配置 电量%d%%", MCU_getBatteryLevel());
|
||||
ee_snprintf(title, sizeof(title), "参数配置 电量%d%%", MCU_getBatteryLevel());
|
||||
atp_error_t res = atp_select( title, 4, config_item, config_adjust, NULL, 0, 0, NULL );
|
||||
if( res == ATP_NO_ACTION )
|
||||
{
|
||||
@ -684,7 +684,7 @@ static void gbaGfxHandler(void *args)
|
||||
// 0x18180000 <----------> screen_top + 16*240*3 + 120 是正确对准,左边对16求余为0,右边为8
|
||||
// 现在右边加上8,是2|2/3个像素
|
||||
GX_displayTransfer((u32*)(0x18180000 + 16*240*3), 368u<<16 | 240u,
|
||||
GFX_getFramebuffer(SCREEN_TOP) + 16*240*3 + 96, 368u<<16 | 240u, 2u<<12 | 1u<<8);
|
||||
GFX_getFramebuffer(SCREEN_TOP) + 16*240*3 + 96, 368u<<16 | 240u, 1u<<12 | 1u<<8);
|
||||
}
|
||||
else GX_displayTransfer((u32*)(0x18180000 + 16*240*3), 368u<<16 | 240u,
|
||||
GFX_getFramebuffer(SCREEN_TOP) + 16*240*3, 368u<<16 | 240u, 1u<<12 | 1u<<8);
|
||||
|
Loading…
x
Reference in New Issue
Block a user