assertions

This commit is contained in:
Glenn Maynard
2005-12-23 19:07:14 +00:00
parent 339873247b
commit a980f83474
+2 -3
View File
@@ -133,9 +133,8 @@ 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 );
ASSERT_M( dstwidth > 0, ssprintf("%i",dstwidth) );
ASSERT_M( dstheight > 0, ssprintf("%i",dstheight) );
if( src == NULL )
return;