mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 11:51:52 +00:00
DIRECTOR: fix setting width and height to puppet sprites
This commit is contained in:
parent
787454f908
commit
ced3a58b10
@ -398,13 +398,13 @@ void Channel::replaceSprite(Sprite *nextSprite) {
|
||||
|
||||
void Channel::setWidth(int w) {
|
||||
if (_sprite->_puppet && _sprite->_stretch) {
|
||||
_width = w;
|
||||
_width = MAX<int>(w, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void Channel::setHeight(int h) {
|
||||
if (_sprite->_puppet && _sprite->_stretch) {
|
||||
_height = h;
|
||||
_height = MAX<int>(h, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user