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/graphics.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/graphics.cpp') diff --git a/src/graphics.cpp b/src/graphics.cpp index a0a9a9c12..16a1de4a2 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -369,7 +369,7 @@ bool Graphics::drawImage(const Image *image, int x, int y) } } -bool Graphics::drawRescaledImage(Image *const image, int srcX, int srcY, +bool Graphics::drawRescaledImage(const Image *const image, int srcX, int srcY, int dstX, int dstY, const int width, const int height, const int desiredWidth, @@ -659,12 +659,12 @@ void Graphics::drawImageRect2(GraphicsVertexes *const vert, } } -void Graphics::drawImagePattern2(GraphicsVertexes *const vert, +void Graphics::drawImagePattern2(const GraphicsVertexes *const vert, const Image *const img) { // here not checking input parameters - std::vector *const arr = vert->getRectsSDL(); + const std::vector *const arr = vert->getRectsSDLconst(); for (std::vector::const_iterator it = arr->begin(), it_end = arr->end(); it != it_end; ++it) @@ -742,7 +742,7 @@ bool Graphics::calcImageRect(GraphicsVertexes *const vert, void Graphics::calcImagePattern(GraphicsVertexes* const vert, const Image *const image, const int x, const int y, - const int w, const int h) + const int w, const int h) const { // Check that preconditions for blitting are met. if (!vert || !mTarget || !image || !image->mSDLSurface || !vert->sdl) @@ -794,11 +794,11 @@ void Graphics::calcImagePattern(GraphicsVertexes* const vert, void Graphics::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 Graphics::calcTile(ImageVertexes *const vert, int x, int y) +void Graphics::calcTile(ImageVertexes *const vert, int x, int y) const { // Check that preconditions for blitting are met. if (!vert || !vert->image || !vert->image->mSDLSurface) @@ -828,7 +828,7 @@ void Graphics::calcTile(ImageVertexes *const vert, int x, int y) } } -void Graphics::drawTile(ImageVertexes *const vert) +void Graphics::drawTile(const ImageVertexes *const vert) { // vert and img must be != 0 const Image *const img = vert->image; -- cgit v1.2.3-70-g09d2