mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 19:16:21 +00:00
MACVENTURE: Begin fixing second inventory problem
This commit is contained in:
parent
b6acfe868c
commit
a5a094b6bd
@ -830,6 +830,7 @@ WindowReference Gui::findWindowAtPoint(Common::Point point) {
|
||||
Common::List<WindowData>::iterator it;
|
||||
for (it = _windowData->begin(); it != _windowData->end(); it++) {
|
||||
if (it->bounds.contains(point) && it->refcon != kDiplomaWindow) { //HACK, diploma should be cosnidered
|
||||
if (findWindow(it->refcon)->isActive())
|
||||
return it->refcon;
|
||||
}
|
||||
}
|
||||
@ -957,6 +958,7 @@ void Gui::selectDraggable(ObjID child, WindowReference origin, Common::Point sta
|
||||
|
||||
void Gui::handleDragRelease(Common::Point pos, bool shiftPressed, bool isDoubleClick) {
|
||||
WindowReference destinationWindow = findWindowAtPoint(pos);
|
||||
if (destinationWindow == kNoWindow) return;
|
||||
if (_draggedObj.id != 0) {
|
||||
if (_draggedObj.hasMoved) {
|
||||
ObjID destObject = getWindowData(destinationWindow).objRef;
|
||||
@ -1260,6 +1262,7 @@ bool Gui::processInventoryEvents(WindowClick click, Common::Event & event) {
|
||||
|
||||
// Find the appropriate window
|
||||
WindowReference ref = findWindowAtPoint(event.mouse);
|
||||
if (ref == kNoWindow) return false;
|
||||
Graphics::MacWindow *win = findWindow(ref);
|
||||
WindowData &data = findWindowData((WindowReference) ref);
|
||||
ObjID child;
|
||||
|
Loading…
x
Reference in New Issue
Block a user