From d1a249bc9e35ffb141f52e50b07f542a64978383 Mon Sep 17 00:00:00 2001 From: Borja Lorente Date: Thu, 4 Aug 2016 17:30:00 +0200 Subject: MACVENTURE: Fix selected object drawing --- engines/macventure/gui.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'engines') 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) { -- cgit v1.2.3