diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-06 01:17:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-06 01:17:00 +0300 |
commit | bcd99fe009fb7d8b14ca4a711befa7f156b29ae7 (patch) | |
tree | b9136debb29ae3fe3dbdcb595a5d65092e0bf613 /src/graphics.h | |
parent | 6d8828b47e291c0e85645adb60c8969a3f8facf4 (diff) | |
download | plus-bcd99fe009fb7d8b14ca4a711befa7f156b29ae7.tar.gz plus-bcd99fe009fb7d8b14ca4a711befa7f156b29ae7.tar.bz2 plus-bcd99fe009fb7d8b14ca4a711befa7f156b29ae7.tar.xz plus-bcd99fe009fb7d8b14ca4a711befa7f156b29ae7.zip |
Add const to images in drawing functions.
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/graphics.h b/src/graphics.h index 805b3a02f..5c3111e0a 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -115,7 +115,7 @@ class Graphics : public gcn::SDLGraphics * @return <code>true</code> if the image was blitted properly * <code>false</code> otherwise. */ - bool drawImage(Image *image, int x, int y); + bool drawImage(const Image *image, int x, int y); /** * Draws a resclaled version of the image @@ -147,13 +147,13 @@ class Graphics : public gcn::SDLGraphics * @return <code>true</code> if the image was blitted properly * <code>false</code> otherwise. */ - virtual bool drawImage(Image *image, + virtual bool drawImage(const Image *image, int srcX, int srcY, int dstX, int dstY, int width, int height, - bool useColor = false); + bool useColor); - virtual void drawImagePattern(Image *image, + virtual void drawImagePattern(const Image *image, int x, int y, int w, int h); @@ -202,7 +202,8 @@ class Graphics : public gcn::SDLGraphics virtual void drawImageRect2(GraphicsVertexes* vert, const ImageRect &imgRect); - virtual void drawImagePattern2(GraphicsVertexes *vert, Image *img); + virtual void drawImagePattern2(GraphicsVertexes *vert, + const Image *img); bool calcWindow(GraphicsVertexes* vert, int x, int y, int w, int h, |