summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-06 01:17:00 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-06 01:17:00 +0300
commitbcd99fe009fb7d8b14ca4a711befa7f156b29ae7 (patch)
treeb9136debb29ae3fe3dbdcb595a5d65092e0bf613 /src/graphics.h
parent6d8828b47e291c0e85645adb60c8969a3f8facf4 (diff)
downloadmanaverse-bcd99fe009fb7d8b14ca4a711befa7f156b29ae7.tar.gz
manaverse-bcd99fe009fb7d8b14ca4a711befa7f156b29ae7.tar.bz2
manaverse-bcd99fe009fb7d8b14ca4a711befa7f156b29ae7.tar.xz
manaverse-bcd99fe009fb7d8b14ca4a711befa7f156b29ae7.zip
Add const to images in drawing functions.
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h11
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,