diff options
-rw-r--r-- | src/openglgraphics.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp index 50b46f11..84ed7820 100644 --- a/src/openglgraphics.cpp +++ b/src/openglgraphics.cpp @@ -226,6 +226,12 @@ bool OpenGLGraphics::drawRescaledImage(Image *image, int srcX, int srcY, if (!image) return false; + // Just draw the image normally when no resizing is necessary + if (width == desiredWidth && height == desiredHeight) + { + return drawImage(image, srcX, srcY, dstX, dstY, width, height, useColor); + } + srcX += image->mBounds.x; srcY += image->mBounds.y; |