don't convert the image if we have nothing else to do

This commit is contained in:
Glenn Maynard
2005-01-16 22:13:01 +00:00
parent bdc1b08695
commit 3fe8ec27db
+3
View File
@@ -136,6 +136,9 @@ void RageSurfaceUtils::Zoom( RageSurface *&src, int dstwidth, int dstheight )
if( src == NULL )
return;
if( src->w == dstwidth && src->h == dstheight )
return;
/* resize currently only does RGBA8888 */
if( src->fmt.BytesPerPixel != 4 )
{