mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-23 19:59:16 +01:00
Update coverflow.cpp
This commit is contained in:
parent
c8e517d9aa
commit
110becb641
@ -245,7 +245,7 @@ bool CCoverFlow::init(const u8 *font, const u32 font_size, bool vid_50hz)
|
|||||||
if (CONF_GetAspectRatio() == CONF_ASPECT_16_9)
|
if (CONF_GetAspectRatio() == CONF_ASPECT_16_9)
|
||||||
guPerspective(m_projMtx, 45, 16.f / 9.f, .1f, 300.f);
|
guPerspective(m_projMtx, 45, 16.f / 9.f, .1f, 300.f);
|
||||||
else
|
else
|
||||||
guPerspective(m_projMtx, 45, 4.f / 3.f, .1f, 300.f);
|
guPerspective(m_projMtx, RadToDeg(2.f * atan(tan(DegToRad(45 / 2) / (4.f / 3.f) * (16.f / 9.f))), 4.f / 3.f, .1f, 300.f);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -254,7 +254,7 @@ void CCoverFlow::simulateOtherScreenFormat(bool s)
|
|||||||
if ((CONF_GetAspectRatio() == CONF_ASPECT_16_9) != s)
|
if ((CONF_GetAspectRatio() == CONF_ASPECT_16_9) != s)
|
||||||
guPerspective(m_projMtx, 45, 16.f / 9.f, .1f, 300.f);
|
guPerspective(m_projMtx, 45, 16.f / 9.f, .1f, 300.f);
|
||||||
else
|
else
|
||||||
guPerspective(m_projMtx, 45, 4.f / 3.f, .1f, 300.f);
|
guPerspective(m_projMtx, RadToDeg(2.f * atan(tan(DegToRad(45 / 2) / (4.f / 3.f) * (16.f / 9.f))), 4.f / 3.f, .1f, 300.f);
|
||||||
}
|
}
|
||||||
|
|
||||||
CCoverFlow::~CCoverFlow(void)
|
CCoverFlow::~CCoverFlow(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user