From 268a0f117e2a004c761a6dde760915bfd5bdf4c5 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Wed, 19 Oct 2022 18:31:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E6=B5=8B=E8=AF=95=E4=B8=8B?= =?UTF-8?q?=E5=B1=8F=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/open_agb_firm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;