aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
diff options
context:
space:
mode:
authorGregory Montoir2007-12-07 20:53:06 +0000
committerGregory Montoir2007-12-07 20:53:06 +0000
commita34df6e72d298ecccdaaf881809184fc4b3f0623 (patch)
tree4351c18b83173d8d5bdd1b306ace6557146afa75 /engines/sword2
parent0718e41c82144d0a617b5a1ec254c34c8a9bf13d (diff)
downloadscummvm-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/sword2')
-rw-r--r--engines/sword2/function.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sword2/function.cpp b/engines/sword2/function.cpp
index f09ca0cd1b..99211c3ece 100644
--- a/engines/sword2/function.cpp
+++ b/engines/sword2/function.cpp
@@ -925,8 +925,7 @@ int32 Logic::fnISpeak(int32 *params) {
// position.
if (_animId) {
- Common::Rect rect(_textX - 96, _textY - 64, _textX + 96, _textY + 64);
- _vm->_system->setFocusRectangle(rect);
+ _vm->_system->setFocusRectangle(Common::Rect::center(_textX, _textY, 192, 128));
}
// Is it to be speech or subtitles or both?