From 933669684b97824e595ab9aacf9432c36d4aaed5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 29 Dec 2005 08:35:04 +0000 Subject: [PATCH] reduce use of ScreenDimensions in RDisplay --- stepmania/src/RageDisplay.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageDisplay.cpp b/stepmania/src/RageDisplay.cpp index a77f8c4145..414cdf8d03 100644 --- a/stepmania/src/RageDisplay.cpp +++ b/stepmania/src/RageDisplay.cpp @@ -10,6 +10,7 @@ #include "RageSurfaceUtils_Zoom.h" #include "RageSurface.h" #include "Preference.h" +#include "PrefsManager.h" #include "ScreenDimensions.h" // @@ -524,7 +525,7 @@ void RageDisplay::CameraPopMatrix() * post-multiplied. */ void RageDisplay::LoadLookAt( float fFOV, const RageVector3 &Eye, const RageVector3 &At, const RageVector3 &Up ) { - float fAspect = SCREEN_WIDTH/(float)SCREEN_HEIGHT; + float fAspect = PREFSMAN->m_fDisplayAspectRatio; g_ProjectionStack.LoadMatrix( GetPerspectiveMatrix(fFOV, fAspect, 1, 1000) ); /* Flip the Y coordinate, so positive numbers go down. */