[Scummvm-cvs-logs] scummvm master -> 20d122bd8bcee4fdd22955e56de57e74e464c6c7
dreammaster
dreammaster at scummvm.org
Thu Jul 16 02:24:22 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:
20d122bd8b SHERLOCK: RT: Fix horizontal placement of talk windows
Commit: 20d122bd8bcee4fdd22955e56de57e74e464c6c7
https://github.com/scummvm/scummvm/commit/20d122bd8bcee4fdd22955e56de57e74e464c6c7
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-07-15T20:22:55-04:00
Commit Message:
SHERLOCK: RT: Fix horizontal placement of talk windows
Changed paths:
engines/sherlock/tattoo/widget_talk.cpp
diff --git a/engines/sherlock/tattoo/widget_talk.cpp b/engines/sherlock/tattoo/widget_talk.cpp
index 276c837..8db44aa 100644
--- a/engines/sherlock/tattoo/widget_talk.cpp
+++ b/engines/sherlock/tattoo/widget_talk.cpp
@@ -104,7 +104,7 @@ void WidgetTalk::load() {
// Place the window centered above the player
Common::Point pt;
int scaleVal = scene.getScaleVal(people[HOLMES]._position);
- pt.x = people[HOLMES]._position.x / FIXED_INT_MULTIPLIER;
+ pt.x = people[HOLMES]._position.x / FIXED_INT_MULTIPLIER - _bounds.width() / 2;
if (scaleVal == SCALE_THRESHOLD) {
pt.x += people[0].frameWidth() / 2;
More information about the Scummvm-git-logs
mailing list