diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index 77b2199..5b16b90 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -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);