aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2013-10-08 23:29:36 +0200
committerWillem Jan Palenstijn2013-10-08 23:30:21 +0200
commitf248a09f0f942e7c36b3e490a83a99b6f70759e5 (patch)
tree2071ec1ce25d09bce7a12aa9fb1d319f9ad81e6a
parentd170c9d2a75b6269f1ff4106910fdc04dc51e593 (diff)
downloadscummvm-rg350-f248a09f0f942e7c36b3e490a83a99b6f70759e5.tar.gz
scummvm-rg350-f248a09f0f942e7c36b3e490a83a99b6f70759e5.tar.bz2
scummvm-rg350-f248a09f0f942e7c36b3e490a83a99b6f70759e5.zip
WINTERMUTE: Fix displayTransOffset
Regression from 14cb1f09c0bc2cace830eaa793227f195acb06bc. This fixes font border drawing.
-rw-r--r--engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
index f1412157c3..95f99a3b8e 100644
--- a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
+++ b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
@@ -428,8 +428,8 @@ bool BaseSurfaceOSystem::drawSprite(int x, int y, Rect32 *rect, Rect32 *newRect,
r = TransformTools::newRect(r, transform, 0);
- position.top = r.top + y;
- position.left = r.left + x;
+ position.top = r.top + y + transform._offset.y;
+ position.left = r.left + x + transform._offset.x;
position.setWidth(r.width() * transform._numTimesX);
position.setHeight(r.height() * transform._numTimesY);
}