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
This commit is contained in:
Robert Špalek 2009-09-27 20:49:59 +00:00
parent 0a36b67a1f
commit caa3b6707e
5 changed files with 64 additions and 126 deletions

View file

@ -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