From af86a79f6ac5c11d1986be8a3d549fef03482789 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Jun 2015 23:10:21 +0300 Subject: Add missing checks into render directory. --- src/render/safeopenglgraphics.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/render/safeopenglgraphics.cpp') 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 @@ -71,6 +71,11 @@ bool SafeOpenGLGraphics::setVideoMode(const int w, const int h, return setOpenGLMode(); } +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, @@ -108,6 +113,13 @@ static inline void drawQuad(const Image *image, } } +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) A_NONNULL(1); + static inline void drawRescaledQuad(const Image *const image, const int srcX, const int srcY, const int dstX, const int dstY, -- cgit v1.2.3-60-g2f50