add assert
This commit is contained in:
@@ -635,6 +635,7 @@ bool RageDisplay::SaveScreenshot( CString sPath, GraphicsFileFormat format )
|
|||||||
if( format != SAVE_LOSSLESS )
|
if( format != SAVE_LOSSLESS )
|
||||||
{
|
{
|
||||||
/* Maintain the DAR. */
|
/* Maintain the DAR. */
|
||||||
|
ASSERT( GetActualVideoModeParams().fDisplayAspectRatio > 0 );
|
||||||
int iHeight = lrintf( 640 / GetActualVideoModeParams().fDisplayAspectRatio );
|
int iHeight = lrintf( 640 / GetActualVideoModeParams().fDisplayAspectRatio );
|
||||||
LOG->Trace( "%ix%i -> %ix%i (%.3f)", surface->w, surface->h, 640, iHeight, GetActualVideoModeParams().fDisplayAspectRatio );
|
LOG->Trace( "%ix%i -> %ix%i (%.3f)", surface->w, surface->h, 640, iHeight, GetActualVideoModeParams().fDisplayAspectRatio );
|
||||||
RageSurfaceUtils::Zoom( surface, 640, iHeight );
|
RageSurfaceUtils::Zoom( surface, 640, iHeight );
|
||||||
|
|||||||
Reference in New Issue
Block a user