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