From 15d0d12c719cafaddf59274fd3052491f79f222a Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 30 Jul 2017 22:45:35 +0200 Subject: WAGE: Draw cursor only when MacTextWindow is not used --- engines/wage/gui.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines') diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp index 377816b448..04419d5eea 100644 --- a/engines/wage/gui.cpp +++ b/engines/wage/gui.cpp @@ -148,7 +148,9 @@ Gui::Gui(WageEngine *engine) { _inputTextLineNum = 0; +#ifndef USE_MACTEXTWINDOW g_system->getTimerManager()->installTimerProc(&cursorTimerHandler, 200000, this, "wageCursor"); +#endif _menu = _wm.addMenu(); @@ -194,7 +196,10 @@ Gui::Gui(WageEngine *engine) { Gui::~Gui() { _screen.free(); _console.free(); + +#ifndef USE_MACTEXTWINDOW g_system->getTimerManager()->removeTimerProc(&cursorTimerHandler); +#endif } void Gui::undrawCursor() { -- cgit v1.2.3