From f708a9bf4aeff8781ec5697ff3936e5791a9137a Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Wed, 7 Oct 2009 21:19:36 +0200 Subject: Fixed wallpaper blur by only using resized image drawing when it is necessary --- src/openglgraphics.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- cgit v1.2.3-70-g09d2