summaryrefslogtreecommitdiff
path: root/src/render/safeopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-30 23:11:20 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-30 23:11:20 +0300
commitb85fd67fb14f6a49c7e71f2265254150ba7a1240 (patch)
treeba4b7d4eb86b84753580885d067783d6bb4b1968 /src/render/safeopenglgraphics.cpp
parent080291d23a1a28cf7c5e3e01eb4ecb1637a1b42b (diff)
downloadplus-b85fd67fb14f6a49c7e71f2265254150ba7a1240.tar.gz
plus-b85fd67fb14f6a49c7e71f2265254150ba7a1240.tar.bz2
plus-b85fd67fb14f6a49c7e71f2265254150ba7a1240.tar.xz
plus-b85fd67fb14f6a49c7e71f2265254150ba7a1240.zip
add drawImageInline into renders for internal usage.
Diffstat (limited to 'src/render/safeopenglgraphics.cpp')
-rw-r--r--src/render/safeopenglgraphics.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp
index e4ae7792e..717e7d5bf 100644
--- a/src/render/safeopenglgraphics.cpp
+++ b/src/render/safeopenglgraphics.cpp
@@ -138,10 +138,15 @@ static inline void drawRescaledQuad(const Image *const image,
}
}
-
bool SafeOpenGLGraphics::drawImage2(const Image *const image,
int dstX, int dstY)
{
+ return drawImageInline(image, dstX, dstY);
+}
+
+bool SafeOpenGLGraphics::drawImageInline(const Image *const image,
+ int dstX, int dstY)
+{
FUNC_BLOCK("Graphics::drawImage2", 1)
if (!image)
return false;
@@ -234,7 +239,7 @@ bool SafeOpenGLGraphics::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);
bindTexture(OpenGLImageHelper::mTextureType, image->mGLImage);