diff options
author | Borja Lorente | 2016-08-04 17:30:00 +0200 |
---|---|---|
committer | Borja Lorente | 2016-08-14 19:01:01 +0200 |
commit | d1a249bc9e35ffb141f52e50b07f542a64978383 (patch) | |
tree | 4d6affa76c2a66f7fc26e1aa1f5cca06c8c54b82 | |
parent | d925d2c2cec380ff5422a6c737a8f7ee49085fd7 (diff) | |
download | scummvm-rg350-d1a249bc9e35ffb141f52e50b07f542a64978383.tar.gz scummvm-rg350-d1a249bc9e35ffb141f52e50b07f542a64978383.tar.bz2 scummvm-rg350-d1a249bc9e35ffb141f52e50b07f542a64978383.zip |
MACVENTURE: Fix selected object drawing
-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) { |