aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent
diff options
context:
space:
mode:
authorMax Horn2010-04-17 23:19:52 +0000
committerMax Horn2010-04-17 23:19:52 +0000
commitbb26c040530f4ea212e17716702963a88165a3b0 (patch)
tree815b162100e9178b7f27a2f836bc019b4ce1ce02 /engines/teenagent
parentaaa6e7ee541fc8d149ffc536e9ff6a015b40d179 (diff)
downloadscummvm-rg350-bb26c040530f4ea212e17716702963a88165a3b0.tar.gz
scummvm-rg350-bb26c040530f4ea212e17716702963a88165a3b0.tar.bz2
scummvm-rg350-bb26c040530f4ea212e17716702963a88165a3b0.zip
Fixing some warnings (with gcc 3.3.6)
svn-id: r48694
Diffstat (limited to 'engines/teenagent')
-rw-r--r--engines/teenagent/surface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/teenagent/surface.cpp b/engines/teenagent/surface.cpp
index 735ce67785..129d1bcd6f 100644
--- a/engines/teenagent/surface.cpp
+++ b/engines/teenagent/surface.cpp
@@ -87,7 +87,7 @@ Common::Rect Surface::render(Graphics::Surface *surface, int dx, int dy, bool mi
return Common::Rect();
if (zoom == 256) {
- byte *src = (byte *)getBasePtr(0, src_rect.top);
+ const byte *src = (const byte *)getBasePtr(0, src_rect.top);
byte *dst_base = (byte *)surface->getBasePtr(dst_rect.left, dst_rect.top);
for (int i = src_rect.top; i < src_rect.bottom; ++i) {
@@ -107,7 +107,7 @@ Common::Rect Surface::render(Graphics::Surface *surface, int dx, int dy, bool mi
for(int i = 0; i < dst_rect.height(); ++i) {
for (int j = 0; j < dst_rect.width(); ++j) {
int px = j * 256 / zoom;
- byte *src = (byte *)getBasePtr(src_rect.left + (mirror? w - px - 1: px), src_rect.top + i * 256 / zoom);
+ const byte *src = (const byte *)getBasePtr(src_rect.left + (mirror? w - px - 1: px), src_rect.top + i * 256 / zoom);
byte p = *src;
if (p != 0xff)
dst[j] = p;