diff options
-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(); |