From 65bdaf447ec8509ed07fb92ca4d0cd205cf50b86 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Mon, 19 Jun 2023 00:03:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=A7=8B=E4=BF=AE=E6=AD=A3=E4=B8=8B?= =?UTF-8?q?=E5=B1=8F=E5=B8=A7=E6=96=AD=E5=B1=82=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82=E5=85=88=E6=B5=8B=E8=AF=95=E6=97=A0=E5=B1=85=E4=B8=AD?= =?UTF-8?q?=E4=BC=9A=E4=B8=8D=E4=BC=9A=E5=87=BA=E7=8E=B0=E6=96=AD=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/open_agb_firm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index 7b2633c..272a51f 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -689,16 +689,16 @@ static void gbaGfxHandler(void *args) // 地址0x18180000保存的是400x240大小的贴图数据rgb888(序列:↑↘↑) // 地址0x18200000保存的是512x512大小的GBA的240x160贴图数据(序列:→↙→) // 所以GPU做的事情就是将18200000的数据逆时针旋转90° - if( g_oafConfig.scaler == 0 ) + /*if( g_oafConfig.scaler == 0 ) { int base_offset = 96; // 3ds高240, gba高160,居中需要平移40个像素,rgb888每个像素3字节,共120字节 // 但是,gpu的transfer engine只支持16字节对齐的地址。所以只能选择16和3的公约数,就是48,96,144,192,240 GX_displayTransfer((u32*)(0x18180000 + 16*240*3), 368u<<16 | 240u, GFX_getFramebuffer(SCREEN_TOP) + 16*240*3 + base_offset, 368u<<16 | 240u, 1u<<12 | 1u<<8); } - else if( g_oafConfig.scaler == 3 ) + else */if( g_oafConfig.scaler == 3 )//下屏无缩放 { - int base_offset = 144; + int base_offset = 0; GX_displayTransfer((u32*)(0x18180000 + 40*240*3), 320u<<16 | 240u, GFX_getFramebuffer(SCREEN_BOT) + base_offset, 320u<<16 | 240u, 1u<<12 | 1u<<8); }