diff options
author | Bertram <bertram@cegetel.net> | 2009-10-09 14:23:49 +0200 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2009-10-09 14:23:49 +0200 |
commit | 5987d6ff5e737d72193089418a3bf31f9f5a5c8f (patch) | |
tree | b804a685fda7067288335ae6cf724aec456fb576 /src/openglgraphics.cpp | |
parent | e09b5c39615f81579c863c9fd76afb173f4e250f (diff) | |
download | mana-5987d6ff5e737d72193089418a3bf31f9f5a5c8f.tar.gz mana-5987d6ff5e737d72193089418a3bf31f9f5a5c8f.tar.bz2 mana-5987d6ff5e737d72193089418a3bf31f9f5a5c8f.tar.xz mana-5987d6ff5e737d72193089418a3bf31f9f5a5c8f.zip |
Made the smooth effect quadratic.
Diffstat (limited to 'src/openglgraphics.cpp')
-rw-r--r-- | src/openglgraphics.cpp | 5 |
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(); |