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/openglgraphics.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/openglgraphics.h') diff --git a/src/openglgraphics.h b/src/openglgraphics.h index 944b8c917..8d90ec72a 100644 --- a/src/openglgraphics.h +++ b/src/openglgraphics.h @@ -55,7 +55,7 @@ class OpenGLGraphics : public Graphics bool setVideoMode(int w, int h, int bpp, bool fs, bool hwaccel, bool resize, bool noFrame); - bool drawImage(Image *image, + bool drawImage(const Image *image, int srcX, int srcY, int dstX, int dstY, int width, int height, @@ -79,7 +79,7 @@ class OpenGLGraphics : public Graphics int desiredWidth, int desiredHeight, bool useColor, bool smooth); - void drawImagePattern(Image *image, + void drawImagePattern(const Image *image, int x, int y, int w, int h); @@ -97,7 +97,7 @@ class OpenGLGraphics : public Graphics void drawTile(ImageVertexes *vert); - void drawImagePattern2(GraphicsVertexes *vert, Image *image); + void drawImagePattern2(GraphicsVertexes *vert, const Image *image); void updateScreen(); -- cgit v1.2.3-60-g2f50