summaryrefslogtreecommitdiff
path: root/src/render/nullopenglgraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/nullopenglgraphics.cpp')
-rw-r--r--src/render/nullopenglgraphics.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/render/nullopenglgraphics.cpp b/src/render/nullopenglgraphics.cpp
index d372aa7dc..11f2035d6 100644
--- a/src/render/nullopenglgraphics.cpp
+++ b/src/render/nullopenglgraphics.cpp
@@ -136,10 +136,15 @@ static inline void drawRescaledQuad(const Image *const image A_UNUSED,
}
}
-
bool NullOpenGLGraphics::drawImage2(const Image *const image,
int dstX, int dstY)
{
+ return drawImageInline(image, dstX, dstY);
+}
+
+bool NullOpenGLGraphics::drawImageInline(const Image *const image,
+ int dstX, int dstY)
+{
FUNC_BLOCK("Graphics::drawImage2", 1)
if (!image)
return false;
@@ -188,7 +193,7 @@ bool NullOpenGLGraphics::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