From: smea Date: Mon, 25 Aug 2014 05:03:47 +0000 (-0700) Subject: minifix gfxSetFramebufferInfo (for 3D) X-Git-Tag: v0.2.0~114 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=3fae8817cc42f43f10f1426813cab1f0d6a48fbc;p=corbenik%2Fctrulib.git minifix gfxSetFramebufferInfo (for 3D) --- diff --git a/libctru/source/gfx.c b/libctru/source/gfx.c index a55b4f4..d1049c3 100644 --- a/libctru/source/gfx.c +++ b/libctru/source/gfx.c @@ -36,7 +36,8 @@ void gfxSetFramebufferInfo(gfxScreen_t screen, u8 id) if(enable3d)topFramebufferInfo.framebuf1_vaddr=(u32*)gfxTopRightFramebuffers[id]; else topFramebufferInfo.framebuf1_vaddr=topFramebufferInfo.framebuf0_vaddr; topFramebufferInfo.framebuf_widthbytesize=240*3; - topFramebufferInfo.format=((1)<<8)|((1)<<6)|((enable3d&1)<<5)|GSP_BGR8_OES; + u8 bit5=(enable3d!=0); + topFramebufferInfo.format=((1)<<8)|((1^bit5)<<6)|((bit5)<<5)|GSP_BGR8_OES; topFramebufferInfo.framebuf_dispselect=id; topFramebufferInfo.unk=0x00000000; }else{