From cf383ed98ff41b6086325b168e5f750b6f87d72e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 29 Dec 2013 21:40:10 +0300 Subject: fix compilation warnings. --- src/render/mobileopenglgraphics.cpp | 2 +- src/render/nullopenglgraphics.cpp | 12 +++++++----- src/render/surfacegraphics.h | 8 +++++--- 3 files changed, 13 insertions(+), 9 deletions(-) (limited to 'src/render') 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; -- cgit v1.2.3-60-g2f50