diff options
Diffstat (limited to 'src/render/normalopenglgraphics.cpp')
-rw-r--r-- | src/render/normalopenglgraphics.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp index 0ab2e88fa..7df3313fd 100644 --- a/src/render/normalopenglgraphics.cpp +++ b/src/render/normalopenglgraphics.cpp @@ -283,10 +283,15 @@ static inline void drawRescaledQuad(const Image *const image, } } - bool NormalOpenGLGraphics::drawImage2(const Image *const image, int dstX, int dstY) { + return drawImageInline(image, dstX, dstY); +} + +bool NormalOpenGLGraphics::drawImageInline(const Image *const image, + int dstX, int dstY) +{ FUNC_BLOCK("Graphics::drawImage2", 1) if (!image) return false; @@ -497,7 +502,7 @@ bool NormalOpenGLGraphics::drawRescaledImage(const Image *const image, // Just draw the image normally when no resizing is necessary, if (imageRect.w == desiredWidth && imageRect.h == desiredHeight) - return drawImage2(image, dstX, dstY); + return drawImageInline(image, dstX, dstY); setColorAlpha(image->mAlpha); #ifdef DEBUG_BIND_TEXTURE |