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 | |
parent | f94a6551b8d140e272ac1c46bce1ff0e5df34986 (diff) | |
download | manaplus-cf383ed98ff41b6086325b168e5f750b6f87d72e.tar.gz manaplus-cf383ed98ff41b6086325b168e5f750b6f87d72e.tar.bz2 manaplus-cf383ed98ff41b6086325b168e5f750b6f87d72e.tar.xz manaplus-cf383ed98ff41b6086325b168e5f750b6f87d72e.zip |
fix compilation warnings.
-rw-r--r-- | src/net/tmwa/pethandler.cpp | 2 | ||||
-rw-r--r-- | src/render/mobileopenglgraphics.cpp | 2 | ||||
-rw-r--r-- | src/render/nullopenglgraphics.cpp | 12 | ||||
-rw-r--r-- | src/render/surfacegraphics.h | 8 |
4 files changed, 14 insertions, 10 deletions
diff --git a/src/net/tmwa/pethandler.cpp b/src/net/tmwa/pethandler.cpp index d260cea3a..37f87ab15 100644 --- a/src/net/tmwa/pethandler.cpp +++ b/src/net/tmwa/pethandler.cpp @@ -45,7 +45,7 @@ PetHandler::PetHandler() : petHandler = this; } -void PetHandler::handleMessage(Net::MessageIn &msg) +void PetHandler::handleMessage(Net::MessageIn &msg A_UNUSED) { BLOCK_START("PetHandler::handleMessage") BLOCK_END("PetHandler::handleMessage") 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; |