diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-25 23:10:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-25 23:31:02 +0300 |
commit | af86a79f6ac5c11d1986be8a3d549fef03482789 (patch) | |
tree | 897f5ea665c01daf2bf01dbe1abd677bb8b2a68d /src/render/safeopenglgraphics.cpp | |
parent | 7ee1d89a656c05b62fa3104b59504afed0037b69 (diff) | |
download | manaverse-af86a79f6ac5c11d1986be8a3d549fef03482789.tar.gz manaverse-af86a79f6ac5c11d1986be8a3d549fef03482789.tar.bz2 manaverse-af86a79f6ac5c11d1986be8a3d549fef03482789.tar.xz manaverse-af86a79f6ac5c11d1986be8a3d549fef03482789.zip |
Add missing checks into render directory.
Diffstat (limited to 'src/render/safeopenglgraphics.cpp')
-rw-r--r-- | src/render/safeopenglgraphics.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp index 191a95531..eadd794b8 100644 --- a/src/render/safeopenglgraphics.cpp +++ b/src/render/safeopenglgraphics.cpp @@ -74,6 +74,11 @@ bool SafeOpenGLGraphics::setVideoMode(const int w, const int h, static inline void drawQuad(const Image *image, const int srcX, const int srcY, const int dstX, const int dstY, + const int width, const int height) A_NONNULL(1); + +static inline void drawQuad(const Image *image, + const int srcX, const int srcY, + const int dstX, const int dstY, const int width, const int height) { if (OpenGLImageHelper::mTextureType == GL_TEXTURE_2D) @@ -113,6 +118,13 @@ static inline void drawRescaledQuad(const Image *const image, const int dstX, const int dstY, const int width, const int height, const int desiredWidth, + const int desiredHeight) A_NONNULL(1); + +static inline void drawRescaledQuad(const Image *const image, + const int srcX, const int srcY, + const int dstX, const int dstY, + const int width, const int height, + const int desiredWidth, const int desiredHeight) { if (OpenGLImageHelper::mTextureType == GL_TEXTURE_2D) |