diff --git a/gui/events.cpp b/gui/events.cpp index 73274ee50..713db8585 100644 --- a/gui/events.cpp +++ b/gui/events.cpp @@ -11,8 +11,8 @@ EventInjector::EventInjector(MyGUI::Gui *g) : gui(g), mouseX(0), mouseY(0), enabled(true) { assert(gui); - maxX = gui->getViewWidth(); - maxY = gui->getViewHeight(); + maxX = gui->getViewSize().width; + maxY = gui->getViewSize().height; } template diff --git a/sound/sndmanager.cpp b/sound/sndmanager.cpp index 10a503bf4..02c6ba1e7 100644 --- a/sound/sndmanager.cpp +++ b/sound/sndmanager.cpp @@ -35,7 +35,6 @@ private: where we poll to check if a resource is still needed, but where manual references are allowed. */ - typedef boost::weak_ptr WSoundPtr; WSoundPtr weak; SoundPtr self;