mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Keep world map icons broken at Original 4:3. (#219)
This commit is contained in:
parent
64a927615d
commit
37d7e49d93
1 changed files with 6 additions and 2 deletions
|
|
@ -1170,8 +1170,12 @@ PPC_FUNC(sub_826906A8)
|
||||||
|
|
||||||
void WorldMapProjectionMidAsmHook(PPCVRegister& v63, PPCVRegister& v62)
|
void WorldMapProjectionMidAsmHook(PPCVRegister& v63, PPCVRegister& v62)
|
||||||
{
|
{
|
||||||
v63.f32[3] *= std::max(NARROW_ASPECT_RATIO, g_aspectRatio) / WIDE_ASPECT_RATIO;
|
// The world map icons are actually broken at 4:3 in the original game!!!
|
||||||
v62.f32[2] *= NARROW_ASPECT_RATIO / std::min(NARROW_ASPECT_RATIO, g_aspectRatio);
|
if (Config::AspectRatio != EAspectRatio::OriginalNarrow)
|
||||||
|
{
|
||||||
|
v63.f32[3] *= std::max(NARROW_ASPECT_RATIO, g_aspectRatio) / WIDE_ASPECT_RATIO;
|
||||||
|
v62.f32[2] *= NARROW_ASPECT_RATIO / std::min(NARROW_ASPECT_RATIO, g_aspectRatio);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// CViewRing has the same exact incorrect math as CObjGetItem.
|
// CViewRing has the same exact incorrect math as CObjGetItem.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue