diff options
Diffstat (limited to 'engines/macventure/gui.cpp')
-rw-r--r-- | engines/macventure/gui.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/engines/macventure/gui.cpp b/engines/macventure/gui.cpp index 24f7031629..b449855fc0 100644 --- a/engines/macventure/gui.cpp +++ b/engines/macventure/gui.cpp @@ -657,9 +657,14 @@ void Gui::drawObjectsInWindow(WindowReference target, Graphics::ManagedSurface * pos.y, mode); - if (_engine->isObjSelected(child)) - _assets[child]->blitInto( - surface, pos.x, pos.y, kBlitOR); + if (_engine->isObjVisible(child)) { + if (_engine->isObjSelected(child) || + child == _draggedObj.id) { + + _assets[child]->blitInto( + surface, pos.x, pos.y, kBlitOR); + } + } // For test if (MACVENTURE_DEBUG_GUI) { @@ -1336,7 +1341,7 @@ bool Gui::processInventoryEvents(WindowClick click, Common::Event & event) { // Find the appropriate window WindowReference ref = findWindowAtPoint(event.mouse); if (ref == kNoWindow) return false; - + WindowData &data = findWindowData((WindowReference) ref); if (click == kBorderScrollUp) { |