mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-07 14:24:12 +08:00
修正编译失败的问题
This commit is contained in:
parent
c1aadf37c0
commit
5a44c6799d
@ -682,7 +682,7 @@ static void gbaGfxHandler(void *args)
|
||||
int base_offset = 120; // 3ds高240, gba高160,居中需要平移40个像素,rgb888每个像素3字节,共120字节
|
||||
// 但是,gpu的transfer engine只支持16字节对齐的地址。现在需要
|
||||
// 0x18180000 <----------> screen_top + 16*240*3 + 120 是正确对准,左边对16求余为0,右边为8
|
||||
dst += 144;
|
||||
dst_offset += 144;
|
||||
}
|
||||
GX_displayTransfer((u32*)(0x18180000 + src_offset), 368u<<16 | 240u,
|
||||
GFX_getFramebuffer(SCREEN_TOP) + dst_offset, 368u<<16 | 240u, 1u<<12 | 1u<<8);
|
||||
|
Loading…
x
Reference in New Issue
Block a user