From 9a2229999ceec02e92bb0e40307017bcf4e416e2 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 23 Dec 2005 19:10:28 +0000 Subject: [PATCH] unneeded (and not correct; actually surface->w/surface->h) --- stepmania/src/RageDisplay.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/stepmania/src/RageDisplay.cpp b/stepmania/src/RageDisplay.cpp index 8ae1779718..33722e1419 100644 --- a/stepmania/src/RageDisplay.cpp +++ b/stepmania/src/RageDisplay.cpp @@ -635,13 +635,8 @@ bool RageDisplay::SaveScreenshot( CString sPath, GraphicsFileFormat format ) if( format != SAVE_LOSSLESS ) { /* Maintain the DAR. */ - float fDAR = GetActualVideoModeParams().fDisplayAspectRatio; - - // -1 seems to be a sentinel - if( fDAR < 0.0f ) - fDAR = 4.0f/3.0f; - int iHeight = lrintf( 640 / fDAR ); - LOG->Trace( "%ix%i -> %ix%i (%.3f)", surface->w, surface->h, 640, iHeight, fDAR ); + int iHeight = lrintf( 640 / GetActualVideoModeParams().fDisplayAspectRatio ); + LOG->Trace( "%ix%i -> %ix%i (%.3f)", surface->w, surface->h, 640, iHeight, GetActualVideoModeParams().fDisplayAspectRatio ); RageSurfaceUtils::Zoom( surface, 640, iHeight ); }