aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wage/macmenu.cpp3
-rw-r--r--engines/wage/macwindow.cpp2
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/wage/macmenu.cpp b/engines/wage/macmenu.cpp
index a97e442c83..ed5f5070ff 100644
--- a/engines/wage/macmenu.cpp
+++ b/engines/wage/macmenu.cpp
@@ -104,6 +104,9 @@ Menu::Menu(int id, const Common::Rect &bounds, MacWindowManager *wm)
_activeItem = -1;
_activeSubItem = -1;
+ _ccallback = NULL;
+ _cdata = NULL;
+
_tempSurface.create(_screen.w, _font->getFontHeight(), Graphics::PixelFormat::createFormatCLUT8());
}
diff --git a/engines/wage/macwindow.cpp b/engines/wage/macwindow.cpp
index 7ff0f57ccb..8903936061 100644
--- a/engines/wage/macwindow.cpp
+++ b/engines/wage/macwindow.cpp
@@ -76,6 +76,8 @@ MacWindow::MacWindow(int id, bool scrollable, bool resizable, bool editable, Mac
_beingDragged = false;
_beingResized = false;
+ _draggedX = _draggedY = 0;
+
_type = kWindowWindow;
}