aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-11 20:58:19 -0400
committerPaul Gilbert2015-06-11 20:58:19 -0400
commit469ad70527a7695aac963b27549313e53607d855 (patch)
tree068194ef416f5f0e2791972862bbac6342ee54fd
parent524f3ad69e00cac923484d0c08f3a10907647d06 (diff)
downloadscummvm-rg350-469ad70527a7695aac963b27549313e53607d855.tar.gz
scummvm-rg350-469ad70527a7695aac963b27549313e53607d855.tar.bz2
scummvm-rg350-469ad70527a7695aac963b27549313e53607d855.zip
SHERLOCK: RT: showCloseUp working better
-rw-r--r--engines/sherlock/tattoo/tattoo_map.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sherlock/tattoo/tattoo_map.cpp b/engines/sherlock/tattoo/tattoo_map.cpp
index ba8cba9f86..fc0037ad3f 100644
--- a/engines/sherlock/tattoo/tattoo_map.cpp
+++ b/engines/sherlock/tattoo/tattoo_map.cpp
@@ -546,7 +546,7 @@ void TattooMap::showCloseUp(int closeUpNum) {
for (int step = 0; step < CLOSEUP_STEPS; ++step) {
Common::Point picSize(pic[0].sDrawXSize(scaleVal), pic[0].sDrawYSize(scaleVal));
- Common::Point pt(closeUp.x / 100 - picSize.x, closeUp.y / 100 - picSize.y);
+ Common::Point pt(closeUp.x / 100 - picSize.x / 2, closeUp.y / 100 - picSize.y / 2);
restoreArea(oldBounds);
screen._backBuffer1.transBlitFrom(pic[0], pt, false, 0, scaleVal);
@@ -564,13 +564,14 @@ void TattooMap::showCloseUp(int closeUpNum) {
// Handle final drawing of closeup
// TODO: Handle scrolling
Common::Rect r(SHERLOCK_SCREEN_WIDTH / 2 - pic[0]._width / 2, SHERLOCK_SCREEN_HEIGHT / 2 - pic[0]._height / 2,
- SHERLOCK_SCREEN_WIDTH / 2 + pic[0]._width / 2 + pic[0]._width,
- SHERLOCK_SCREEN_HEIGHT / 2 + pic[0]._height / 2 + pic[0]._height);
+ SHERLOCK_SCREEN_WIDTH / 2 - pic[0]._width / 2 + pic[0]._width,
+ SHERLOCK_SCREEN_HEIGHT / 2 - pic[0]._height / 2 + pic[0]._height);
restoreArea(oldBounds);
screen._backBuffer1.transBlitFrom(pic[0], Common::Point(r.left, r.top));
screen.slamRect(oldBounds);
screen.slamRect(r);
+ events.wait(2);
}
void TattooMap::slamRect(const Common::Rect &bounds) {