WAGE: Initialize class variables

This commit is contained in:
Eugene Sandulenko 2016-05-02 13:24:54 +02:00
parent 84d2cf6cbf
commit 7ffa209a79
2 changed files with 5 additions and 0 deletions

View File

@ -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());
}

View File

@ -76,6 +76,8 @@ MacWindow::MacWindow(int id, bool scrollable, bool resizable, bool editable, Mac
_beingDragged = false;
_beingResized = false;
_draggedX = _draggedY = 0;
_type = kWindowWindow;
}