Resize down to height = 480. That way, we don't resize down typical widescreen resolutions.

This commit is contained in:
Chris Danford
2007-02-26 09:36:43 +00:00
parent 107c0e20c3
commit e9f66fbc75
+4 -3
View File
@@ -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;