aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-06-14 18:07:23 +0200
committerEinar Johan Trøan Sømåen2012-06-14 18:07:23 +0200
commitbcc93b735c0a6b48bfbc4ee8e10f9dccc7bcaa9f (patch)
treed2b290fd1fedec174abff0e5d8db81486cc9acd1 /engines
parentd8c33544b24b015c907b9bce5cc9990ed724bde4 (diff)
downloadscummvm-rg350-bcc93b735c0a6b48bfbc4ee8e10f9dccc7bcaa9f.tar.gz
scummvm-rg350-bcc93b735c0a6b48bfbc4ee8e10f9dccc7bcaa9f.tar.bz2
scummvm-rg350-bcc93b735c0a6b48bfbc4ee8e10f9dccc7bcaa9f.zip
WINTERMUTE: Use offsets correctly in BSurfaceSDL.
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/Base/BSurfaceSDL.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/Base/BSurfaceSDL.cpp b/engines/wintermute/Base/BSurfaceSDL.cpp
index ae7bad54b7..02788e0ffc 100644
--- a/engines/wintermute/Base/BSurfaceSDL.cpp
+++ b/engines/wintermute/Base/BSurfaceSDL.cpp
@@ -504,8 +504,8 @@ HRESULT CBSurfaceSDL::drawSprite(int x, int y, RECT *Rect, float ZoomX, float Zo
srcRect.setHeight(Rect->bottom - Rect->top);
Common::Rect position;
- position.left = x;
- position.top = y;
+ position.left = x + offsetX;
+ position.top = y + offsetY;
// TODO: Scaling...
position.setWidth((float)srcRect.width() * ZoomX / 100.f);
@@ -513,8 +513,8 @@ HRESULT CBSurfaceSDL::drawSprite(int x, int y, RECT *Rect, float ZoomX, float Zo
renderer->ModTargetRect(&position);
- position.left += offsetX;
- position.top += offsetY;
+/* position.left += offsetX;
+ position.top += offsetY;*/
// TODO: This actually requires us to have the SAME source-offsets every time,
// But no checking is in place for that yet.