mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-07 22:34:12 +08:00
继续测试下屏显示
This commit is contained in:
parent
f3ccfb26fc
commit
268a0f117e
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user