aboutsummaryrefslogtreecommitdiff
path: root/graphics/VectorRendererSpec.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2009-05-06 09:12:58 +0000
committerEugene Sandulenko2009-05-06 09:12:58 +0000
commit8f4a2c14764be82ac527d2ab052f9235380e2fee (patch)
treebcbcb2cd8fd84baf6e1ddc0aefd75d5616bc5161 /graphics/VectorRendererSpec.cpp
parentaf4d23f76260658b1b5e0e9ae40f00f6245bfa4f (diff)
downloadscummvm-rg350-8f4a2c14764be82ac527d2ab052f9235380e2fee.tar.gz
scummvm-rg350-8f4a2c14764be82ac527d2ab052f9235380e2fee.tar.bz2
scummvm-rg350-8f4a2c14764be82ac527d2ab052f9235380e2fee.zip
Silence warnings. Const correctness
svn-id: r40347
Diffstat (limited to 'graphics/VectorRendererSpec.cpp')
-rw-r--r--graphics/VectorRendererSpec.cpp6
1 files changed, 3 insertions, 3 deletions
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<typename PixelType>
void VectorRendererSpec<PixelType>::
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;