Keep world map icons broken at Original 4:3. (#219)

This commit is contained in:
Skyth (Asilkan) 2025-01-27 23:57:08 +03:00 committed by GitHub
parent 64a927615d
commit 37d7e49d93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1170,8 +1170,12 @@ PPC_FUNC(sub_826906A8)
void WorldMapProjectionMidAsmHook(PPCVRegister& v63, PPCVRegister& v62)
{
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);
// 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;
v62.f32[2] *= NARROW_ASPECT_RATIO / std::min(NARROW_ASPECT_RATIO, g_aspectRatio);
}
}
// CViewRing has the same exact incorrect math as CObjGetItem.