From 459c2c3a6decbd5576760040f566f1544645c3ac Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 21 Nov 2012 04:08:09 +0300 Subject: Add some consts to draw backend. --- src/safeopenglgraphics.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/safeopenglgraphics.cpp') diff --git a/src/safeopenglgraphics.cpp b/src/safeopenglgraphics.cpp index 9ca2340d0..6142627f1 100644 --- a/src/safeopenglgraphics.cpp +++ b/src/safeopenglgraphics.cpp @@ -169,7 +169,7 @@ bool SafeOpenGLGraphics::drawImage2(const Image *const image, return true; } -bool SafeOpenGLGraphics::drawRescaledImage(Image *const image, int srcX, +bool SafeOpenGLGraphics::drawRescaledImage(const Image *const image, int srcX, int srcY, int dstX, int dstY, const int width, const int height, const int desiredWidth, @@ -183,7 +183,7 @@ bool SafeOpenGLGraphics::drawRescaledImage(Image *const image, int srcX, useColor, true); } -bool SafeOpenGLGraphics::drawRescaledImage(Image *const image, int srcX, +bool SafeOpenGLGraphics::drawRescaledImage(const Image *const image, int srcX, int srcY, int dstX, int dstY, const int width, const int height, const int desiredWidth, @@ -355,11 +355,11 @@ bool SafeOpenGLGraphics::calcImageRect(GraphicsVertexes *const vert, void SafeOpenGLGraphics::calcTile(ImageVertexes *const vert A_UNUSED, const Image *const image A_UNUSED, - int x A_UNUSED, int y A_UNUSED) + int x A_UNUSED, int y A_UNUSED) const { } -void SafeOpenGLGraphics::drawTile(ImageVertexes *const vert A_UNUSED) +void SafeOpenGLGraphics::drawTile(const ImageVertexes *const vert A_UNUSED) { } @@ -592,7 +592,8 @@ void SafeOpenGLGraphics::setTexturingAndBlending(bool enable) } } -void SafeOpenGLGraphics::drawRectangle(const gcn::Rectangle& rect, bool filled) +void SafeOpenGLGraphics::drawRectangle(const gcn::Rectangle& rect, + const bool filled) { BLOCK_START("Graphics::drawRectangle") const float offset = filled ? 0 : 0.5f; -- cgit v1.2.3-70-g09d2