diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-06 01:17:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-06 01:17:00 +0300 |
commit | bcd99fe009fb7d8b14ca4a711befa7f156b29ae7 (patch) | |
tree | b9136debb29ae3fe3dbdcb595a5d65092e0bf613 /src/opengl1graphics.cpp | |
parent | 6d8828b47e291c0e85645adb60c8969a3f8facf4 (diff) | |
download | plus-bcd99fe009fb7d8b14ca4a711befa7f156b29ae7.tar.gz plus-bcd99fe009fb7d8b14ca4a711befa7f156b29ae7.tar.bz2 plus-bcd99fe009fb7d8b14ca4a711befa7f156b29ae7.tar.xz plus-bcd99fe009fb7d8b14ca4a711befa7f156b29ae7.zip |
Add const to images in drawing functions.
Diffstat (limited to 'src/opengl1graphics.cpp')
-rw-r--r-- | src/opengl1graphics.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/opengl1graphics.cpp b/src/opengl1graphics.cpp index 33eabc236..dd39adb8b 100644 --- a/src/opengl1graphics.cpp +++ b/src/opengl1graphics.cpp @@ -71,7 +71,7 @@ bool OpenGL1Graphics::setVideoMode(int w, int h, int bpp, bool fs, return setOpenGLMode(); } -static inline void drawQuad(Image *image, +static inline void drawQuad(const Image *image, int srcX, int srcY, int dstX, int dstY, int width, int height) { @@ -148,7 +148,7 @@ static inline void drawRescaledQuad(Image *image, int srcX, int srcY, } -bool OpenGL1Graphics::drawImage(Image *image, int srcX, int srcY, +bool OpenGL1Graphics::drawImage(const Image *image, int srcX, int srcY, int dstX, int dstY, int width, int height, bool useColor) { @@ -259,7 +259,7 @@ bool OpenGL1Graphics::drawRescaledImage(Image *image, int srcX, int srcY, /* Optimising the functions that Graphics::drawImagePattern would call, * so that glBegin...glEnd are outside the main loop. */ -void OpenGL1Graphics::drawImagePattern(Image *image, int x, int y, +void OpenGL1Graphics::drawImagePattern(const Image *image, int x, int y, int w, int h) { if (!image) |