forgot this was stored here. Not sure if it's better for the AR to be stored here, or if ScreenDimensions::GetScreenAspectRatio should be moved to a RDisplay. After all, the dimensions of the screen (the AR preference) are RageDisplay's domain, not the theme's (just as GetThemeAspectRatio belongs to the high-level theme code and not RDisplay).

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