mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
DIRECTOR: release previous widget when setting new castmember.
This commit is contained in:
parent
1724d0f2dc
commit
dcabde4f8e
@ -297,6 +297,10 @@ Common::Rect Channel::getBbox(bool unstretched) {
|
||||
}
|
||||
|
||||
void Channel::setCast(CastMemberID memberID) {
|
||||
// release previous widget
|
||||
if (_sprite->_cast)
|
||||
_sprite->_cast->releaseWidget();
|
||||
|
||||
_sprite->setCast(memberID);
|
||||
_width = _sprite->_width;
|
||||
_height = _sprite->_height;
|
||||
|
Loading…
x
Reference in New Issue
Block a user