diff options
Diffstat (limited to 'engines/queen/talk.cpp')
-rw-r--r-- | engines/queen/talk.cpp | 11 |
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; |