don't convert the image if we have nothing else to do
This commit is contained in:
@@ -136,6 +136,9 @@ void RageSurfaceUtils::Zoom( RageSurface *&src, int dstwidth, int dstheight )
|
|||||||
if( src == NULL )
|
if( src == NULL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if( src->w == dstwidth && src->h == dstheight )
|
||||||
|
return;
|
||||||
|
|
||||||
/* resize currently only does RGBA8888 */
|
/* resize currently only does RGBA8888 */
|
||||||
if( src->fmt.BytesPerPixel != 4 )
|
if( src->fmt.BytesPerPixel != 4 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user