[Scummvm-cvs-logs] SF.net SVN: scummvm:[40347] scummvm/trunk/graphics/VectorRendererSpec.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Wed May 6 11:12:59 CEST 2009
Revision: 40347
http://scummvm.svn.sourceforge.net/scummvm/?rev=40347&view=rev
Author: sev
Date: 2009-05-06 09:12:58 +0000 (Wed, 06 May 2009)
Log Message:
-----------
Silence warnings. Const correctness
Modified Paths:
--------------
scummvm/trunk/graphics/VectorRendererSpec.cpp
Modified: scummvm/trunk/graphics/VectorRendererSpec.cpp
===================================================================
--- scummvm/trunk/graphics/VectorRendererSpec.cpp 2009-05-06 09:12:24 UTC (rev 40346)
+++ scummvm/trunk/graphics/VectorRendererSpec.cpp 2009-05-06 09:12:58 UTC (rev 40347)
@@ -288,7 +288,7 @@
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 @@
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 @@
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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list