summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2009-10-09 14:23:49 +0200
committerBertram <bertram@cegetel.net>2009-10-09 14:23:49 +0200
commit5987d6ff5e737d72193089418a3bf31f9f5a5c8f (patch)
treeb804a685fda7067288335ae6cf724aec456fb576
parente09b5c39615f81579c863c9fd76afb173f4e250f (diff)
downloadmana-5987d6ff5e737d72193089418a3bf31f9f5a5c8f.tar.gz
mana-5987d6ff5e737d72193089418a3bf31f9f5a5c8f.tar.bz2
mana-5987d6ff5e737d72193089418a3bf31f9f5a5c8f.tar.xz
mana-5987d6ff5e737d72193089418a3bf31f9f5a5c8f.zip
Made the smooth effect quadratic.
-rw-r--r--src/openglgraphics.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp
index d047eb2f..3f5bf8d8 100644
--- a/src/openglgraphics.cpp
+++ b/src/openglgraphics.cpp
@@ -257,6 +257,11 @@ bool OpenGLGraphics::drawRescaledImage(Image *image, int srcX, int srcY,
desiredWidth + 1, desiredHeight + 1);
drawRescaledQuad(image, srcX, srcY, dstX + 1, dstY + 1, width, height,
desiredWidth - 1, desiredHeight - 1);
+
+ drawRescaledQuad(image, srcX, srcY, dstX + 1, dstY, width, height,
+ desiredWidth - 1, desiredHeight);
+ drawRescaledQuad(image, srcX, srcY, dstX, dstY + 1, width, height,
+ desiredWidth, desiredHeight - 1);
}
glEnd();