aboutsummaryrefslogtreecommitdiff
path: root/engines/wage
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-02 13:24:54 +0200
committerEugene Sandulenko2016-05-02 15:19:07 +0200
commit7ffa209a79e6158e5e97aca93b4c961b739e8ec1 (patch)
treec240b5467ae04e19f1ad93ab61559881ce62b091 /engines/wage
parent84d2cf6cbf4515f9ce96576df6c9a18586a23cec (diff)
downloadscummvm-rg350-7ffa209a79e6158e5e97aca93b4c961b739e8ec1.tar.gz
scummvm-rg350-7ffa209a79e6158e5e97aca93b4c961b739e8ec1.tar.bz2
scummvm-rg350-7ffa209a79e6158e5e97aca93b4c961b739e8ec1.zip
WAGE: Initialize class variables
Diffstat (limited to 'engines/wage')
-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;
}