dstwidth, dstheight >= 0

This commit is contained in:
Steve Checkoway
2005-12-23 12:54:45 +00:00
parent 4e84abb2b6
commit 417461540b
+3
View File
@@ -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;