mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-08 06:44:12 +08:00
scaler=1出现了颜色偏倚,尝试对齐
This commit is contained in:
parent
ead9cf797d
commit
f6c62f681d
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user