diff options
author | Einar Johan Trøan Sømåen | 2012-08-31 14:01:18 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-08-31 14:01:18 +0200 |
commit | 2039ea6b8df36c960ff25ae56930357d40e95d1d (patch) | |
tree | f4e6f5737f6ca3880584a47554c574f11035ee98 /engines/wintermute/graphics/transparent_surface.cpp | |
parent | 16b27090b1c7dc11cdc199b1a98c0f2973db5f45 (diff) | |
download | scummvm-rg350-2039ea6b8df36c960ff25ae56930357d40e95d1d.tar.gz scummvm-rg350-2039ea6b8df36c960ff25ae56930357d40e95d1d.tar.bz2 scummvm-rg350-2039ea6b8df36c960ff25ae56930357d40e95d1d.zip |
WINTERMUTE: Fix g++ warnings listed by LordHoto
Diffstat (limited to 'engines/wintermute/graphics/transparent_surface.cpp')
-rw-r--r-- | engines/wintermute/graphics/transparent_surface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/graphics/transparent_surface.cpp b/engines/wintermute/graphics/transparent_surface.cpp index 47e3591d4d..da01259b1b 100644 --- a/engines/wintermute/graphics/transparent_surface.cpp +++ b/engines/wintermute/graphics/transparent_surface.cpp @@ -403,7 +403,7 @@ TransparentSurface *TransparentSurface::scale(const Common::Rect &srcRect, const for (int y = 0; y < dstH; y++) { for (int x = 0; x < dstW; x++) { - uint32 color = READ_UINT32((byte *)getBasePtr(x * srcW / dstW + srcRect.left, + uint32 color = READ_UINT32((const byte *)getBasePtr(x * srcW / dstW + srcRect.left, y * srcH / dstH + srcRect.top)); WRITE_UINT32((byte *)target->getBasePtr(x + dstRect.left, y + dstRect.top), color); } |