DIRECTOR: fix setting the stretch
This commit is contained in:
parent
50b79e06c3
commit
2ba71c897c
1 changed files with 4 additions and 6 deletions
|
@ -1596,15 +1596,13 @@ void Lingo::setTheSprite(Datum &id1, int field, Datum &d) {
|
|||
break;
|
||||
case kTheStretch:
|
||||
if (d.asInt() != sprite->_stretch) {
|
||||
g_director->getCurrentWindow()->addDirtyRect(channel->getBbox());
|
||||
|
||||
sprite->_stretch = d.asInt();
|
||||
channel->_dirty = true;
|
||||
|
||||
if (sprite->_stretch) {
|
||||
g_director->getCurrentWindow()->addDirtyRect(channel->getBbox());
|
||||
|
||||
channel->_width = sprite->_width;
|
||||
channel->_height = sprite->_height;
|
||||
}
|
||||
channel->_width = sprite->_width;
|
||||
channel->_height = sprite->_height;
|
||||
}
|
||||
break;
|
||||
case kTheTrails:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue