From f6c62f681d826202648058ecbb8eb1685c29acd5 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Wed, 19 Oct 2022 16:01:40 +0800 Subject: [PATCH] =?UTF-8?q?scaler=3D1=E5=87=BA=E7=8E=B0=E4=BA=86=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E5=81=8F=E5=80=9A=EF=BC=8C=E5=B0=9D=E8=AF=95=E5=AF=B9?= =?UTF-8?q?=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/open_agb_firm.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index cc22169..41ed41d 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -676,15 +676,16 @@ static void gbaGfxHandler(void *args) // 地址0x18200000保存的是512x512大小的GBA的240x160贴图数据(序列:→↙→) // 所以GPU做的事情就是将18200000的数据逆时针旋转90° int offset = 0; - if( g_oafConfig.scaler == 0 ) offset = (240-160) / 2; + if( g_oafConfig.scaler == 0 ) offset = 3 * (240-160) / 2 + 1; GX_displayTransfer((u32*)(0x18180000 + (16 * 240 * 3)), 368u<<16 | 240u, - GFX_getFramebuffer(SCREEN_TOP) + (16 * 240 * 3) + offset * 3, 368u<<16 | 240u, 1u<<12 | 1u<<8); + GFX_getFramebuffer(SCREEN_TOP) + (16 * 240 * 3) + offset, 368u<<16 | 240u, 1u<<12 | 1u<<8); GFX_waitForPPF(); GFX_swapFramebufs(); //if(hidKeysDown() == (KEY_Y | KEY_SELECT)) dumpFrameTex(); } - + rgb +rgbr taskExit(); }