diff options
author | Gregory Montoir | 2007-12-07 20:53:06 +0000 |
---|---|---|
committer | Gregory Montoir | 2007-12-07 20:53:06 +0000 |
commit | a34df6e72d298ecccdaaf881809184fc4b3f0623 (patch) | |
tree | 4351c18b83173d8d5bdd1b306ace6557146afa75 /engines/scumm/actor.cpp | |
parent | 0718e41c82144d0a617b5a1ec254c34c8a9bf13d (diff) | |
download | scummvm-rg350-a34df6e72d298ecccdaaf881809184fc4b3f0623.tar.gz scummvm-rg350-a34df6e72d298ecccdaaf881809184fc4b3f0623.tar.bz2 scummvm-rg350-a34df6e72d298ecccdaaf881809184fc4b3f0623.zip |
add Common::Rect::center (handy for ::setFocusRectangle())
svn-id: r29751
Diffstat (limited to 'engines/scumm/actor.cpp')
-rw-r--r-- | engines/scumm/actor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/scumm/actor.cpp b/engines/scumm/actor.cpp index fd330c02bc..8e3526f9f6 100644 --- a/engines/scumm/actor.cpp +++ b/engines/scumm/actor.cpp @@ -1827,8 +1827,7 @@ void ScummEngine::setTalkingActor(int i) { // Set the focus area to the calculated position // TODO: Make the size adjust depending on what it's focusing on. - Common::Rect rect(x - 96, y - 64, x + 96, y + 64); - _system->setFocusRectangle(rect); + _system->setFocusRectangle(Common::Rect::center(x, y, 192, 128)); } if (_game.id == GID_MANIAC && _game.version <= 1 && !(_game.platform == Common::kPlatformNES)) |