yuck, need GetScreenAspectRatio for ASPECT_AUTO. better approach coming ...

This commit is contained in:
Glenn Maynard
2005-12-29 08:41:18 +00:00
parent 933669684b
commit 6855fa9b2c
+3 -1
View File
@@ -525,7 +525,9 @@ void RageDisplay::CameraPopMatrix()
* post-multiplied. */
void RageDisplay::LoadLookAt( float fFOV, const RageVector3 &Eye, const RageVector3 &At, const RageVector3 &Up )
{
float fAspect = PREFSMAN->m_fDisplayAspectRatio;
// XXX
float fAspect = ScreenDimensions::GetScreenAspectRatio();
// PREFSMAN->m_fDisplayAspectRatio;
g_ProjectionStack.LoadMatrix( GetPerspectiveMatrix(fFOV, fAspect, 1, 1000) );
/* Flip the Y coordinate, so positive numbers go down. */