unneeded (and not correct; actually surface->w/surface->h)

This commit is contained in:
Glenn Maynard
2005-12-23 19:10:28 +00:00
parent a980f83474
commit 9a2229999c
+2 -7
View File
@@ -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 );
}