[Scummvm-git-logs] scummvm master -> 2ba71c897c20eaf78da5a19172533654698b3eeb
ysj1173886760
42030331+ysj1173886760 at users.noreply.github.com
Sun Aug 8 11:51:41 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
2ba71c897c DIRECTOR: fix setting the stretch
Commit: 2ba71c897c20eaf78da5a19172533654698b3eeb
https://github.com/scummvm/scummvm/commit/2ba71c897c20eaf78da5a19172533654698b3eeb
Author: ysj1173886760 (1173886760 at qq.com)
Date: 2021-08-08T19:51:22+08:00
Commit Message:
DIRECTOR: fix setting the stretch
Changed paths:
engines/director/lingo/lingo-the.cpp
diff --git a/engines/director/lingo/lingo-the.cpp b/engines/director/lingo/lingo-the.cpp
index caa5c15fde..48fea88b0a 100644
--- a/engines/director/lingo/lingo-the.cpp
+++ b/engines/director/lingo/lingo-the.cpp
@@ -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:
More information about the Scummvm-git-logs
mailing list