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:
@@ -525,9 +525,7 @@ void RageDisplay::CameraPopMatrix()
|
|||||||
* post-multiplied. */
|
* post-multiplied. */
|
||||||
void RageDisplay::LoadLookAt( float fFOV, const RageVector3 &Eye, const RageVector3 &At, const RageVector3 &Up )
|
void RageDisplay::LoadLookAt( float fFOV, const RageVector3 &Eye, const RageVector3 &At, const RageVector3 &Up )
|
||||||
{
|
{
|
||||||
// XXX
|
float fAspect = GetActualVideoModeParams().fDisplayAspectRatio;
|
||||||
float fAspect = ScreenDimensions::GetScreenAspectRatio();
|
|
||||||
// PREFSMAN->m_fDisplayAspectRatio;
|
|
||||||
g_ProjectionStack.LoadMatrix( GetPerspectiveMatrix(fFOV, fAspect, 1, 1000) );
|
g_ProjectionStack.LoadMatrix( GetPerspectiveMatrix(fFOV, fAspect, 1, 1000) );
|
||||||
|
|
||||||
/* Flip the Y coordinate, so positive numbers go down. */
|
/* Flip the Y coordinate, so positive numbers go down. */
|
||||||
|
|||||||
Reference in New Issue
Block a user