From bcd99fe009fb7d8b14ca4a711befa7f156b29ae7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 6 May 2012 01:17:00 +0300 Subject: Add const to images in drawing functions. --- src/graphics.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/graphics.h') 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 true if the image was blitted properly * false 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 true if the image was blitted properly * false 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, -- cgit v1.2.3-70-g09d2