From 7e0a97d2521b9ce57003176e82a0b5564aa003c2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Jul 2012 23:26:59 +0300 Subject: Fix more code style and additional warnings. --- src/openglgraphics.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/openglgraphics.cpp') diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp index e53f4e11b..4edcb089d 100644 --- a/src/openglgraphics.cpp +++ b/src/openglgraphics.cpp @@ -206,9 +206,9 @@ static inline void drawRescaledQuad(Image *image, } -bool OpenGLGraphics::drawImage(const Image *image, int srcX, int srcY, - int dstX, int dstY, - int width, int height, bool useColor) +bool OpenGLGraphics::drawImage2(const Image *image, int srcX, int srcY, + int dstX, int dstY, + int width, int height, bool useColor) { if (!image) return false; @@ -264,8 +264,8 @@ bool OpenGLGraphics::drawRescaledImage(Image *image, int srcX, int srcY, // 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); + return drawImage2(image, srcX, srcY, dstX, dstY, + width, height, useColor); } // When the desired image is smaller than the current one, -- cgit v1.2.3-70-g09d2