summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-08-05 16:39:32 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-08-05 16:40:36 +0200
commit363f71157a8107190b3bd2ba656faf0a0e63ab36 (patch)
tree4e86324c312f2d78b261d88d5b470a4a7cbf9f94 /src/graphics.h
parent4eea727b7649726670d8963d11ab4fd429624b3e (diff)
downloadmana-client-363f71157a8107190b3bd2ba656faf0a0e63ab36.tar.gz
mana-client-363f71157a8107190b3bd2ba656faf0a0e63ab36.tar.bz2
mana-client-363f71157a8107190b3bd2ba656faf0a0e63ab36.tar.xz
mana-client-363f71157a8107190b3bd2ba656faf0a0e63ab36.zip
Revert "Graphics: take only const pointers to images."
This reverts commit 4eea727b7649726670d8963d11ab4fd429624b3e. It broke the overrides of the virtual functions and leaves the Graphics API in inconsistent state with some Image* being const and others not.
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graphics.h b/src/graphics.h
index c70e7978..6a17aab4 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -99,7 +99,7 @@ class Graphics : public gcn::SDLGraphics
* @return <code>true</code> if the image was blitted properly
* <code>false</code> otherwise.
*/
- bool drawImage(const Image *image, int x, int y);
+ bool drawImage(Image *image, int x, int y);
/**
* Overrides with our own drawing method.
@@ -135,13 +135,13 @@ class Graphics : public gcn::SDLGraphics
* @return <code>true</code> if the image was blitted properly
* <code>false</code> otherwise.
*/
- virtual bool drawImage(const Image *image,
+ virtual bool drawImage(Image *image,
int srcX, int srcY,
int dstX, int dstY,
int width, int height,
bool useColor = false);
- virtual void drawImagePattern(const Image *image,
+ virtual void drawImagePattern(Image *image,
int x, int y,
int w, int h);