aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/script.cpp
diff options
context:
space:
mode:
authorRobert Špalek2009-09-27 20:49:59 +0000
committerRobert Špalek2009-09-27 20:49:59 +0000
commitcaa3b6707e4cd6a20f2d20d57f9748b8ece89852 (patch)
treef15e38f1b9400b5af07f896e8b0a4e331cefb6a5 /engines/draci/script.cpp
parent0a36b67a1f12490f84c1a6c1f03aa09f2e598c1f (diff)
downloadscummvm-rg350-caa3b6707e4cd6a20f2d20d57f9748b8ece89852.tar.gz
scummvm-rg350-caa3b6707e4cd6a20f2d20d57f9748b8ece89852.tar.bz2
scummvm-rg350-caa3b6707e4cd6a20f2d20d57f9748b8ece89852.zip
Improved the interface of Sprite and Animation concerning relative coordinates and scaling.
It is no longer needed to modify the underlying animations when drawing them on the screen or testing pixels in them. Read access is enough, because the displacement of the object is passed as a parameter. Added some more const's where they logically belong. svn-id: r44419
Diffstat (limited to 'engines/draci/script.cpp')
-rw-r--r--engines/draci/script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/draci/script.cpp b/engines/draci/script.cpp
index 3622f2d028..8a256f4fcc 100644
--- a/engines/draci/script.cpp
+++ b/engines/draci/script.cpp
@@ -676,7 +676,7 @@ void Script::talk(Common::Queue<int> &params) {
const Person *person = _vm->_game->getPerson(personID);
// Set the string and text colour
- surface->markDirtyRect(speechFrame->getRect(true));
+ surface->markDirtyRect(speechFrame->getRect());
speechFrame->setText(Common::String((const char *)f->_data+1, f->_length-1));
speechFrame->setColour(person->_fontColour);
@@ -712,7 +712,7 @@ void Script::talk(Common::Queue<int> &params) {
_vm->_game->loop();
// Delete the text
- _vm->_screen->getSurface()->markDirtyRect(speechFrame->getRect(true));
+ _vm->_screen->getSurface()->markDirtyRect(speechFrame->getRect());
speechFrame->setText("");
// Revert to "normal" loop status