继续测试下屏显示

This commit is contained in:
anod 2022-10-19 18:31:59 +08:00
parent f3ccfb26fc
commit 268a0f117e

View File

@ -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;