diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-10-07 21:19:36 +0200 |
---|---|---|
committer | Philipp Sehmisch <crush@themanaworld.org> | 2009-10-07 21:19:36 +0200 |
commit | f708a9bf4aeff8781ec5697ff3936e5791a9137a (patch) | |
tree | db235b4ef46f53e3fc42af2c06282bb4ecabdb9b /src | |
parent | 55e37d20e1c8b6fecef5d4b52b8fce3a884bd0be (diff) | |
download | mana-f708a9bf4aeff8781ec5697ff3936e5791a9137a.tar.gz mana-f708a9bf4aeff8781ec5697ff3936e5791a9137a.tar.bz2 mana-f708a9bf4aeff8781ec5697ff3936e5791a9137a.tar.xz mana-f708a9bf4aeff8781ec5697ff3936e5791a9137a.zip |
Fixed wallpaper blur by only using resized image drawing when it is necessary
Diffstat (limited to 'src')
-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; |