[Scummvm-cvs-logs] scummvm master -> 469ad70527a7695aac963b27549313e53607d855

dreammaster dreammaster at scummvm.org
Fri Jun 12 02:59:21 CEST 2015


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
469ad70527 SHERLOCK: RT: showCloseUp working better


Commit: 469ad70527a7695aac963b27549313e53607d855
    https://github.com/scummvm/scummvm/commit/469ad70527a7695aac963b27549313e53607d855
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-06-11T20:58:19-04:00

Commit Message:
SHERLOCK: RT: showCloseUp working better

Changed paths:
    engines/sherlock/tattoo/tattoo_map.cpp



diff --git a/engines/sherlock/tattoo/tattoo_map.cpp b/engines/sherlock/tattoo/tattoo_map.cpp
index ba8cba9..fc0037a 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) {






More information about the Scummvm-git-logs mailing list