diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index be9ad85..5b1172e 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -672,7 +672,7 @@ static void gbaGfxHandler(void *args) } GX_processCommandList(listSize, list); GFX_waitForP3D(); - // 地址0x18180000保存的是360x240大小的贴图数据rgb888(序列:↑↘↑) + // 地址0x18180000保存的是400x240大小的贴图数据rgb888(序列:↑↘↑) // 地址0x18200000保存的是512x512大小的GBA的240x160贴图数据(序列:→↙→) // 所以GPU做的事情就是将18200000的数据逆时针旋转90° if( g_oafConfig.scaler == 0 ) @@ -911,6 +911,7 @@ Result oafInitAndRun(void) const KHandle frameReadyEvent = createEvent(false); LGYFB_init(frameReadyEvent, g_oafConfig.scaler); // 这里把GBA的输出转换成0x18200000处512x512大小的纹理 patchGbaGpuCmdList(g_oafConfig.scaler); + if( g_oafConfig.scaler == 0 ) GFX_setDoubleBuffering(SCREEN_BOT, true); createTask(0x800, 3, gbaGfxHandler, (void*)frameReadyEvent); g_frameReadyEvent = frameReadyEvent;