DIRECTOR: only use the original sprites when we have to scale down the bitmap cast member

This commit is contained in:
ysj1173886760 2021-07-04 21:16:03 +08:00 committed by Eugene Sandulenko
parent d53064f948
commit 13f5460ca4

View File

@ -288,7 +288,7 @@ void Sprite::setCast(CastMemberID memberID) {
Common::Rect dims = _cast->getInitialRect();
// strange logic here, need to be fixed
if (_cast->_type == kCastBitmap) {
if (_width > dims.width() || _height > dims.height()) {
if (_width >= dims.width() || _height >= dims.height()) {
_width = dims.width();
_height = dims.height();
}