From e9f66fbc75c9edb965873045b019dfbcc5d70bf9 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 26 Feb 2007 09:36:43 +0000 Subject: [PATCH] Resize down to height = 480. That way, we don't resize down typical widescreen resolutions. --- stepmania/src/RageDisplay.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageDisplay.cpp b/stepmania/src/RageDisplay.cpp index 01d938c88f..f6236bf9ac 100644 --- a/stepmania/src/RageDisplay.cpp +++ b/stepmania/src/RageDisplay.cpp @@ -727,9 +727,10 @@ bool RageDisplay::SaveScreenshot( RString sPath, GraphicsFileFormat format ) { /* Maintain the DAR. */ ASSERT( GetActualVideoModeParams().fDisplayAspectRatio > 0 ); - 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 ); + int iHeight = 480; + int iWidth = lrintf( iHeight * GetActualVideoModeParams().fDisplayAspectRatio ); + LOG->Trace( "%ix%i -> %ix%i (%.3f)", surface->w, surface->h, iWidth, iHeight, GetActualVideoModeParams().fDisplayAspectRatio ); + RageSurfaceUtils::Zoom( surface, iWidth, iHeight ); } RageFile out;