From 3fe8ec27db4485889fe7bb2f136d78549c2f53e5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 16 Jan 2005 22:13:01 +0000 Subject: [PATCH] don't convert the image if we have nothing else to do --- stepmania/src/SDL_rotozoom.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/SDL_rotozoom.cpp b/stepmania/src/SDL_rotozoom.cpp index 57eb88fab0..8333c1480c 100644 --- a/stepmania/src/SDL_rotozoom.cpp +++ b/stepmania/src/SDL_rotozoom.cpp @@ -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 ) {