diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-29 21:40:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-29 21:40:10 +0300 |
commit | cf383ed98ff41b6086325b168e5f750b6f87d72e (patch) | |
tree | 3596cf2f6e000d0e76c17db0531e63ed6c9b876c /src/render | |
parent | f94a6551b8d140e272ac1c46bce1ff0e5df34986 (diff) | |
download | mv-cf383ed98ff41b6086325b168e5f750b6f87d72e.tar.gz mv-cf383ed98ff41b6086325b168e5f750b6f87d72e.tar.bz2 mv-cf383ed98ff41b6086325b168e5f750b6f87d72e.tar.xz mv-cf383ed98ff41b6086325b168e5f750b6f87d72e.zip |
fix compilation warnings.
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/mobileopenglgraphics.cpp | 2 | ||||
-rw-r--r-- | src/render/nullopenglgraphics.cpp | 12 | ||||
-rw-r--r-- | src/render/surfacegraphics.h | 8 |
3 files changed, 13 insertions, 9 deletions
diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp index 8a1f47bef..202d03a37 100644 --- a/src/render/mobileopenglgraphics.cpp +++ b/src/render/mobileopenglgraphics.cpp @@ -339,7 +339,7 @@ void MobileOpenGLGraphics::drawPatternCached(const Image *const image, vertFill2D(mFloatTexArrayCached, mShortVertArrayCached, texX1, texY1, texX2, texY2, - x, y, width, height); + dstX, dstY, width, height); vp += 12; if (vp >= vLimit) diff --git a/src/render/nullopenglgraphics.cpp b/src/render/nullopenglgraphics.cpp index 9e0b49aeb..7cf4c2f34 100644 --- a/src/render/nullopenglgraphics.cpp +++ b/src/render/nullopenglgraphics.cpp @@ -158,14 +158,16 @@ bool NullOpenGLGraphics::drawImage2(const Image *const image, return true; } -void NullOpenGLGraphics::drawImageCached(const Image *const image, - int x, int y) +void NullOpenGLGraphics::drawImageCached(const Image *const image A_UNUSED, + int x A_UNUSED, int y A_UNUSED) { } -void NullOpenGLGraphics::drawPatternCached(const Image *const image, - const int x, const int y, - const int w, const int h) +void NullOpenGLGraphics::drawPatternCached(const Image *const image A_UNUSED, + const int x A_UNUSED, + const int y A_UNUSED, + const int w A_UNUSED, + const int h A_UNUSED) { } diff --git a/src/render/surfacegraphics.h b/src/render/surfacegraphics.h index b606d0ddf..6b8051c6a 100644 --- a/src/render/surfacegraphics.h +++ b/src/render/surfacegraphics.h @@ -188,9 +188,11 @@ class SurfaceGraphics final : public Graphics void drawImageCached(const Image *const image, int x, int y) override final; - void drawPatternCached(const Image *const image, - const int x, const int y, - const int w, const int h) override final + void drawPatternCached(const Image *const image A_UNUSED, + const int x A_UNUSED, + const int y A_UNUSED, + const int w A_UNUSED, + const int h A_UNUSED) override final { } void completeCache() override final; |