From a84b76890d31553d82a3d9f330391cae83cf3ef1 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 25 Dec 2005 18:59:52 +0000 Subject: [PATCH] add assert --- stepmania/src/RageDisplay.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stepmania/src/RageDisplay.cpp b/stepmania/src/RageDisplay.cpp index 33722e1419..6f0abf8410 100644 --- a/stepmania/src/RageDisplay.cpp +++ b/stepmania/src/RageDisplay.cpp @@ -635,6 +635,7 @@ bool RageDisplay::SaveScreenshot( CString sPath, GraphicsFileFormat format ) if( format != SAVE_LOSSLESS ) { /* 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 );