Keep world map icons broken at Original 4:3.

This commit is contained in:
Skyth 2025-01-27 23:55:51 +03:00
parent 64a927615d
commit 0e68d53434

View file

@ -1169,10 +1169,14 @@ PPC_FUNC(sub_826906A8)
} }
void WorldMapProjectionMidAsmHook(PPCVRegister& v63, PPCVRegister& v62) void WorldMapProjectionMidAsmHook(PPCVRegister& v63, PPCVRegister& v62)
{
// The world map icons are actually broken at 4:3 in the original game!!!
if (Config::AspectRatio != EAspectRatio::OriginalNarrow)
{ {
v63.f32[3] *= std::max(NARROW_ASPECT_RATIO, g_aspectRatio) / WIDE_ASPECT_RATIO; 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); 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.
void ViewRingFieldOfViewMidAsmHook(PPCRegister& r1, PPCRegister& f1) void ViewRingFieldOfViewMidAsmHook(PPCRegister& r1, PPCRegister& f1)