From a34df6e72d298ecccdaaf881809184fc4b3f0623 Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Fri, 7 Dec 2007 20:53:06 +0000 Subject: add Common::Rect::center (handy for ::setFocusRectangle()) svn-id: r29751 --- engines/sword2/function.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/sword2') 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? -- cgit v1.2.3