From 2b73c50a476a20864f3631e3d3c2ac24710fe3a3 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 2 Aug 2010 20:43:42 +0000 Subject: GUI: Fix valgrind warning. svn-id: r51658 --- gui/GuiManager.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gui/GuiManager.cpp') diff --git a/gui/GuiManager.cpp b/gui/GuiManager.cpp index ab370425ab..bbd7718d71 100644 --- a/gui/GuiManager.cpp +++ b/gui/GuiManager.cpp @@ -249,6 +249,9 @@ void GuiManager::runLoop() { redraw(); } + _lastMousePosition.x = _lastMousePosition.y = -1; + _lastMousePosition.time = 0; + Common::EventManager *eventMan = _system->getEventManager(); uint32 lastRedraw = 0; const uint32 waitTime = 1000 / 45; -- cgit v1.2.3