diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2012-07-29 22:08:40 +0200 |
---|---|---|
committer | Stefan Beller <stefanbeller@googlemail.com> | 2012-08-05 12:23:54 +0200 |
commit | 4eea727b7649726670d8963d11ab4fd429624b3e (patch) | |
tree | 7cf2e9738506b5482b3d5ee8d5cd996f7043ba58 /src/graphics.h | |
parent | a4bdd8f7bef9ce0002a9015e0ebc9c4cb8dd3614 (diff) | |
download | mana-4eea727b7649726670d8963d11ab4fd429624b3e.tar.gz mana-4eea727b7649726670d8963d11ab4fd429624b3e.tar.bz2 mana-4eea727b7649726670d8963d11ab4fd429624b3e.tar.xz mana-4eea727b7649726670d8963d11ab4fd429624b3e.zip |
Graphics: take only const pointers to images.
Acked-by: Erik Schilling
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graphics.h b/src/graphics.h index 6a17aab4..c70e7978 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(Image *image, int x, int y); + bool drawImage(const 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(Image *image, + virtual bool drawImage(const Image *image, int srcX, int srcY, int dstX, int dstY, int width, int height, bool useColor = false); - virtual void drawImagePattern(Image *image, + virtual void drawImagePattern(const Image *image, int x, int y, int w, int h); |