From 8f4a2c14764be82ac527d2ab052f9235380e2fee Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 6 May 2009 09:12:58 +0000 Subject: Silence warnings. Const correctness svn-id: r40347 --- graphics/VectorRendererSpec.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'graphics/VectorRendererSpec.cpp') diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp index f243006228..b48dec4a8c 100644 --- a/graphics/VectorRendererSpec.cpp +++ b/graphics/VectorRendererSpec.cpp @@ -288,7 +288,7 @@ blitSurface(const Graphics::Surface *source, const Common::Rect &r) { assert(source->w == _activeSurface->w && source->h == _activeSurface->h); byte *dst_ptr = (byte *)_activeSurface->getBasePtr(r.left, r.top); - byte *src_ptr = (byte *)source->getBasePtr(r.left, r.top); + const byte *src_ptr = (const byte *)source->getBasePtr(r.left, r.top); const int dst_pitch = _activeSurface->pitch; const int src_pitch = source->pitch; @@ -307,7 +307,7 @@ template void VectorRendererSpec:: blitSubSurface(const Graphics::Surface *source, const Common::Rect &r) { byte *dst_ptr = (byte *)_activeSurface->getBasePtr(r.left, r.top); - byte *src_ptr = (byte *)source->getBasePtr(0, 0); + const byte *src_ptr = (const byte *)source->getBasePtr(0, 0); const int dst_pitch = _activeSurface->pitch; const int src_pitch = source->pitch; @@ -335,7 +335,7 @@ blitAlphaBitmap(const Graphics::Surface *source, const Common::Rect &r) { y = y + (r.height() >> 1) - (source->h >> 1); PixelType *dst_ptr = (PixelType *)_activeSurface->getBasePtr(x, y); - PixelType *src_ptr = (PixelType *)source->getBasePtr(0, 0); + const PixelType *src_ptr = (const PixelType *)source->getBasePtr(0, 0); int dst_pitch = _activeSurface->pitch / _activeSurface->bytesPerPixel; int src_pitch = source->pitch / source->bytesPerPixel; -- cgit v1.2.3