assertions
This commit is contained in:
@@ -133,9 +133,8 @@ static void ZoomSurface( const RageSurface * src, RageSurface * dst )
|
|||||||
|
|
||||||
void RageSurfaceUtils::Zoom( RageSurface *&src, int dstwidth, int dstheight )
|
void RageSurfaceUtils::Zoom( RageSurface *&src, int dstwidth, int dstheight )
|
||||||
{
|
{
|
||||||
// Is 0 a valid width/height?
|
ASSERT_M( dstwidth > 0, ssprintf("%i",dstwidth) );
|
||||||
ASSERT( dstwidth >= 0 );
|
ASSERT_M( dstheight > 0, ssprintf("%i",dstheight) );
|
||||||
ASSERT( dstheight >= 0 );
|
|
||||||
if( src == NULL )
|
if( src == NULL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user