[Scummvm-git-logs] scummvm master -> 49e28f9dbce0af9d7903a4b2240bd87e44af027a
moralrecordings
code at moral.net.au
Mon May 25 14:56:30 UTC 2020
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:
49e28f9dbc DIRECTOR: Fix Sprite::getBbox() for kCastButton
Commit: 49e28f9dbce0af9d7903a4b2240bd87e44af027a
https://github.com/scummvm/scummvm/commit/49e28f9dbce0af9d7903a4b2240bd87e44af027a
Author: Scott Percival (code at moral.net.au)
Date: 2020-05-25T22:56:08+08:00
Commit Message:
DIRECTOR: Fix Sprite::getBbox() for kCastButton
Changed paths:
engines/director/sprite.cpp
diff --git a/engines/director/sprite.cpp b/engines/director/sprite.cpp
index 36302a7816..5ec801e90b 100644
--- a/engines/director/sprite.cpp
+++ b/engines/director/sprite.cpp
@@ -249,13 +249,13 @@ Common::Rect Sprite::getBbox() {
case kCheckboxSprite:
// Magic numbers: checkbox square need to move left about 5px from
// text and 12px side size (D4)
- _startBbox = Common::Rect(x, y + 2, x + 12, y + 14);
+ result = Common::Rect(x, y + 2, x + 12, y + 14);
break;
case kButtonSprite:
- _startBbox = Common::Rect(x, y, x + width, y + height + 3);
+ result = Common::Rect(x, y, x + width, y + height + 3);
break;
case kRadioButtonSprite:
- _startBbox = Common::Rect(x, y + 2, x + 12, y + 14);
+ result = Common::Rect(x, y + 2, x + 12, y + 14);
break;
default:
warning("Score::getBbox(): Unknown buttonType");
More information about the Scummvm-git-logs
mailing list