From 417461540b271bf48b2dacc365d85cbaf9a27be1 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 23 Dec 2005 12:54:45 +0000 Subject: [PATCH] dstwidth, dstheight >= 0 --- stepmania/src/RageSurfaceUtils_Zoom.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/RageSurfaceUtils_Zoom.cpp b/stepmania/src/RageSurfaceUtils_Zoom.cpp index fb8ae3ca93..dc88d723eb 100644 --- a/stepmania/src/RageSurfaceUtils_Zoom.cpp +++ b/stepmania/src/RageSurfaceUtils_Zoom.cpp @@ -133,6 +133,9 @@ static void ZoomSurface( const RageSurface * src, RageSurface * dst ) void RageSurfaceUtils::Zoom( RageSurface *&src, int dstwidth, int dstheight ) { + // Is 0 a valid width/height? + ASSERT( dstwidth >= 0 ); + ASSERT( dstheight >= 0 ); if( src == NULL ) return;