diff options
author | Borja Lorente | 2016-07-14 00:18:08 +0200 |
---|---|---|
committer | Borja Lorente | 2016-08-14 18:55:16 +0200 |
commit | 8162483026ec52476a1106e72259c84e5476fd2d (patch) | |
tree | 46515e4af1cb9ba015d7d05f60bdf53a40a06256 /engines/macventure/gui.cpp | |
parent | dad1edcef0e5b95b0d4b09e97c2045a3b5ba61f3 (diff) | |
download | scummvm-rg350-8162483026ec52476a1106e72259c84e5476fd2d.tar.gz scummvm-rg350-8162483026ec52476a1106e72259c84e5476fd2d.tar.bz2 scummvm-rg350-8162483026ec52476a1106e72259c84e5476fd2d.zip |
MACVENTURE: Add text input logic
Diffstat (limited to 'engines/macventure/gui.cpp')
-rw-r--r-- | engines/macventure/gui.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/macventure/gui.cpp b/engines/macventure/gui.cpp index 91df455318..02f603659e 100644 --- a/engines/macventure/gui.cpp +++ b/engines/macventure/gui.cpp @@ -460,7 +460,7 @@ bool Gui::loadWindows() { data.title = Common::String(newTitle); } - debug(4, "Window loaded: %s", data.title); + debug(4, "Window loaded: %s", data.title.c_str()); _windowData->push_back(data); } @@ -1163,7 +1163,6 @@ bool Gui::processCommandEvents(WindowClick click, Common::Event &event) { } } - _engine->selectControl(data.getData().refcon); _engine->activateCommand(data.getData().refcon); _engine->refreshReady(); @@ -1178,7 +1177,6 @@ bool MacVenture::Gui::processMainGameEvents(WindowClick click, Common::Event & e if (click == kBorderInner && event.type == Common::EVENT_LBUTTONDOWN) { WindowData &data = findWindowData(kMainGameWindow); - ObjID child = 0; Common::Point pos; // Click rect to local coordinates. We assume the click is inside the window ^ Common::Rect clickRect = calculateClickRect(event.mouse, _mainGameWindow->getDimensions()); @@ -1254,7 +1252,6 @@ bool Gui::processInventoryEvents(WindowClick click, Common::Event & event) { if (ref == kNoWindow) return false; Graphics::MacWindow *win = findWindow(ref); WindowData &data = findWindowData((WindowReference) ref); - ObjID child; Common::Point pos; // Click rect to local coordinates. We assume the click is inside the window ^ Common::Rect clickRect = calculateClickRect(event.mouse, win->getDimensions()); |