mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
Fix Inspire letterbox.
This commit is contained in:
parent
b6a93bc1ee
commit
39e41e7f03
1 changed files with 5 additions and 4 deletions
|
|
@ -1155,11 +1155,12 @@ PPC_FUNC(sub_82B8AA40)
|
||||||
PPC_STORE_U8(ctx.r3.u32, shouldDrawLetterbox);
|
PPC_STORE_U8(ctx.r3.u32, shouldDrawLetterbox);
|
||||||
if (shouldDrawLetterbox)
|
if (shouldDrawLetterbox)
|
||||||
{
|
{
|
||||||
//uint32_t height = std::min(720u, Video::s_viewportHeight);
|
float aspectRatio = std::max(NARROW_ASPECT_RATIO, g_aspectRatio);
|
||||||
|
uint32_t width = aspectRatio * 720;
|
||||||
|
|
||||||
//PPC_STORE_U32(ctx.r3.u32 + 0xC, Video::s_viewportWidth);
|
PPC_STORE_U32(ctx.r3.u32 + 0xC, width);
|
||||||
//PPC_STORE_U32(ctx.r3.u32 + 0x10, height);
|
PPC_STORE_U32(ctx.r3.u32 + 0x10, 720);
|
||||||
//PPC_STORE_U32(ctx.r3.u32 + 0x14, (height - Video::s_viewportWidth * 9 / 16) / 2);
|
PPC_STORE_U32(ctx.r3.u32 + 0x14, (720 - width * 9 / 16) / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
__imp__sub_82B8AA40(ctx, base);
|
__imp__sub_82B8AA40(ctx, base);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue