mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-07 22:34:12 +08:00
上屏改565继续测试
This commit is contained in:
parent
9a51d1ce4d
commit
c02aef0cb1
@ -51,7 +51,7 @@ int main(void)
|
|||||||
{
|
{
|
||||||
Result res = fMount(FS_DRIVE_SDMC);
|
Result res = fMount(FS_DRIVE_SDMC);
|
||||||
if(res == RES_OK) res = oafParseConfigEarly();
|
if(res == RES_OK) res = oafParseConfigEarly();
|
||||||
GFX_init(GFX_BGR8, GFX_RGB565);
|
GFX_init(GFX_RGB565, GFX_RGB565);
|
||||||
setBacklight();
|
setBacklight();
|
||||||
consoleInit(SCREEN_BOT, NULL);
|
consoleInit(SCREEN_BOT, NULL);
|
||||||
//CODEC_init();
|
//CODEC_init();
|
||||||
|
@ -681,8 +681,8 @@ static void gbaGfxHandler(void *args)
|
|||||||
// 但是,gpu的transfer engine只支持16字节对齐的地址。现在需要
|
// 但是,gpu的transfer engine只支持16字节对齐的地址。现在需要
|
||||||
// 0x18180000 <----------> screen_top + 16*240*3 + 120 是正确对准,左边对16求余为0,右边为8
|
// 0x18180000 <----------> screen_top + 16*240*3 + 120 是正确对准,左边对16求余为0,右边为8
|
||||||
// 现在右边加上8,是2|2/3个像素
|
// 现在右边加上8,是2|2/3个像素
|
||||||
GX_displayTransfer((u32*)(0x18180000 + 16*240*3 + 48), 368u<<16 | 240u,
|
GX_displayTransfer((u32*)(0x18180000 + 16*240*3), 368u<<16 | 240u,
|
||||||
GFX_getFramebuffer(SCREEN_TOP) + 16*240*3 + 144, 368u<<16 | 240u, 1u<<12 | 1u<<8);
|
GFX_getFramebuffer(SCREEN_TOP) + 16*240*2 + 80, 368u<<16 | 240u, 2u<<12 | 1u<<8);
|
||||||
}
|
}
|
||||||
else GX_displayTransfer((u32*)(0x18180000 + 16*240*3), 368u<<16 | 240u,
|
else GX_displayTransfer((u32*)(0x18180000 + 16*240*3), 368u<<16 | 240u,
|
||||||
GFX_getFramebuffer(SCREEN_TOP) + 16*240*3, 368u<<16 | 240u, 1u<<12 | 1u<<8);
|
GFX_getFramebuffer(SCREEN_TOP) + 16*240*3, 368u<<16 | 240u, 1u<<12 | 1u<<8);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user