aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-11 20:08:25 -0400
committerPaul Gilbert2015-06-11 20:08:25 -0400
commit524f3ad69e00cac923484d0c08f3a10907647d06 (patch)
tree5591933c2ca5a8939d95b7aa2e5daefde8941ab6 /engines/sherlock
parent647d69c1f13bac9f356a3bdb08db5ff3f4cbd328 (diff)
downloadscummvm-rg350-524f3ad69e00cac923484d0c08f3a10907647d06.tar.gz
scummvm-rg350-524f3ad69e00cac923484d0c08f3a10907647d06.tar.bz2
scummvm-rg350-524f3ad69e00cac923484d0c08f3a10907647d06.zip
SHERLOCK: RT: map showCloseUp now partially working
Diffstat (limited to 'engines/sherlock')
-rw-r--r--engines/sherlock/tattoo/tattoo_map.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/sherlock/tattoo/tattoo_map.cpp b/engines/sherlock/tattoo/tattoo_map.cpp
index bce07e3dee..ba8cba9f86 100644
--- a/engines/sherlock/tattoo/tattoo_map.cpp
+++ b/engines/sherlock/tattoo/tattoo_map.cpp
@@ -508,14 +508,15 @@ void TattooMap::restoreArea(const Common::Rect &bounds) {
}
void TattooMap::showCloseUp(int closeUpNum) {
+ Events &events = *_vm->_events;
Screen &screen = *_vm->_screen;
// Get the closeup images
Common::String fname = Common::String::format("res%02d.vgs", closeUpNum + 1);
ImageFile pic(fname);
- Common::Point closeUp(_data[closeUpNum].x * 100, _data[closeUpNum].y * 100);
- Common::Point delta((SHERLOCK_SCREEN_WIDTH / 2 - closeUp.x / 100) * 100 / CLOSEUP_STEPS,
+ Point32 closeUp(_data[closeUpNum].x * 100, _data[closeUpNum].y * 100);
+ Point32 delta((SHERLOCK_SCREEN_WIDTH / 2 - closeUp.x / 100) * 100 / CLOSEUP_STEPS,
(SHERLOCK_SCREEN_HEIGHT / 2 - closeUp.y / 100) * 100 / CLOSEUP_STEPS);
Common::Rect oldBounds(closeUp.x / 100, closeUp.y / 100, closeUp.x / 100 + 1, closeUp.y / 100 + 1);
int size = 64;
@@ -550,13 +551,14 @@ void TattooMap::showCloseUp(int closeUpNum) {
restoreArea(oldBounds);
screen._backBuffer1.transBlitFrom(pic[0], pt, false, 0, scaleVal);
- // TODO: handle scrolling
- screen.slamRect(_oldTextBounds);
+ screen.slamRect(oldBounds);
screen.slamArea(pt.x, pt.y, picSize.x, picSize.y);
oldBounds = Common::Rect(pt.x, pt.y, pt.x + picSize.x + 1, pt.y + picSize.y + 1);
closeUp += delta;
scaleVal += deltaScale;
+
+ events.wait(1);
}
// Handle final drawing of closeup