aboutsummaryrefslogtreecommitdiff
path: root/engines/queen/talk.cpp
diff options
context:
space:
mode:
authorMax Horn2006-07-09 09:40:44 +0000
committerMax Horn2006-07-09 09:40:44 +0000
commiteaff9344a457d14a90175d8fe613d0cd952290f9 (patch)
tree6ee5944ab74184e1dbd26c8716e1c88b46278f42 /engines/queen/talk.cpp
parentb3f2d299fef43460f9297c28c37d2749fdd2712a (diff)
downloadscummvm-rg350-eaff9344a457d14a90175d8fe613d0cd952290f9.tar.gz
scummvm-rg350-eaff9344a457d14a90175d8fe613d0cd952290f9.tar.bz2
scummvm-rg350-eaff9344a457d14a90175d8fe613d0cd952290f9.zip
Added OSystem::setFocusRectangle (first part of Nintendo DS patch)
svn-id: r23449
Diffstat (limited to 'engines/queen/talk.cpp')
-rw-r--r--engines/queen/talk.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/queen/talk.cpp b/engines/queen/talk.cpp
index 223bd320f5..2b8d3c9508 100644
--- a/engines/queen/talk.cpp
+++ b/engines/queen/talk.cpp
@@ -21,6 +21,7 @@
*/
#include "common/stdafx.h"
+#include "common/rect.h"
#include "queen/talk.h"
#include "queen/bankman.h"
@@ -865,6 +866,16 @@ void Talk::speakSegment(
textY = bob->y;
}
+ // Set the focus rectangle
+ // FIXME: This may not be correct!
+ BobFrame *pbf = _vm->bankMan()->fetchFrame(bob->frameNum);
+
+ int height = (pbf->height * bob->scale) / 100;
+
+ Common::Rect focus(textX - 96, textY - height - 64, textX + 96, textY + height + 64);
+ _vm->display()->setFocusRect(focus);
+
+
//int SF = _vm->grid()->findScale(textX, textY);
const SpeechParameters *parameters = NULL;