diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-11-21 04:08:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-11-21 13:19:22 +0300 |
commit | 459c2c3a6decbd5576760040f566f1544645c3ac (patch) | |
tree | 16917971820b11a99acc4f875f977811e4474670 /src/safeopenglgraphics.cpp | |
parent | 08d0c6de4aa164c690d94622e4a6a6ea57a9efaf (diff) | |
download | plus-459c2c3a6decbd5576760040f566f1544645c3ac.tar.gz plus-459c2c3a6decbd5576760040f566f1544645c3ac.tar.bz2 plus-459c2c3a6decbd5576760040f566f1544645c3ac.tar.xz plus-459c2c3a6decbd5576760040f566f1544645c3ac.zip |
Add some consts to draw backend.
Diffstat (limited to 'src/safeopenglgraphics.cpp')
-rw-r--r-- | src/safeopenglgraphics.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
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; |