aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2016-02-25 00:40:09 +0100
committerWillem Jan Palenstijn2016-02-27 14:21:23 +0100
commit154f592f513b860d8305d3c866ab79899e8f3184 (patch)
tree4f15fe7d8e8433b5ec2e2f091799eaee4b46ca40 /engines/sci/graphics
parent77bb83cdfd7bb3836fe55ca1fef6247198437108 (diff)
downloadscummvm-rg350-154f592f513b860d8305d3c866ab79899e8f3184.tar.gz
scummvm-rg350-154f592f513b860d8305d3c866ab79899e8f3184.tar.bz2
scummvm-rg350-154f592f513b860d8305d3c866ab79899e8f3184.zip
SCI32: Clear InfoFlagViewVisible after updating ScreenItem
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r--engines/sci/graphics/screen_item32.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/engines/sci/graphics/screen_item32.cpp b/engines/sci/graphics/screen_item32.cpp
index 80d03086ae..0bbb056071 100644
--- a/engines/sci/graphics/screen_item32.cpp
+++ b/engines/sci/graphics/screen_item32.cpp
@@ -215,14 +215,7 @@ void ScreenItem::setFromObject(SegManager *segMan, const reg_t object, const boo
_useInsetRect = false;
}
- // TODO: SCI2.1/SQ6 engine clears this flag any time ScreenItem::Update(MemID)
- // or ScreenItem::ScreenItem(MemID) are called, but doing this breaks
- // view cycling because the flag isn't being set again later. There are over
- // 100 places in the engine code where this flag is set, so it is probably
- // a matter of figuring out what all of those calls are that re-set it. For
- // now, since these are the *only* calls that clear this flag, we can just
- // leave it set all the time.
- // segMan->getObject(object)->clearInfoSelectorFlag(kInfoFlagViewVisible);
+ segMan->getObject(object)->clearInfoSelectorFlag(kInfoFlagViewVisible);
}
void ScreenItem::calcRects(const Plane &plane) {