From 79d65e08403b4a24846eac57ca9ffd1ddd92a5cd Mon Sep 17 00:00:00 2001 From: Bertram Date: Fri, 9 Oct 2009 14:10:24 +0200 Subject: Final fix (or I hope so) to smooth effect in OpenGL. --- src/openglgraphics.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp index 84ed7820..97417be7 100644 --- a/src/openglgraphics.cpp +++ b/src/openglgraphics.cpp @@ -226,8 +226,9 @@ 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) + // Just draw the image normally when no resizing is necessary, + // or when the desired image is smaller than the current one. + if (width >= desiredWidth && height >= desiredHeight) { return drawImage(image, srcX, srcY, dstX, dstY, width, height, useColor); } -- cgit v1.2.3-70-g09d2