diff options
author | Andrei Prykhodko | 2018-07-29 21:16:44 +0300 |
---|---|---|
committer | Andrei Prykhodko | 2018-07-29 21:23:04 +0300 |
commit | 75eceedfa515c652d0698de11a9f605fe23c336d (patch) | |
tree | f56b56f5f54e72c803e5bd654a1c59eb0ba0f59d /graphics/macgui/mactextwindow.cpp | |
parent | 841e0c11d82fe784b9153d0cb6fff3063969ca41 (diff) | |
download | scummvm-rg350-75eceedfa515c652d0698de11a9f605fe23c336d.tar.gz scummvm-rg350-75eceedfa515c652d0698de11a9f605fe23c336d.tar.bz2 scummvm-rg350-75eceedfa515c652d0698de11a9f605fe23c336d.zip |
GRAPHICS: MACGUI: add additional arg to MacTextWindow's constructor to disable cursor handler
Diffstat (limited to 'graphics/macgui/mactextwindow.cpp')
-rw-r--r-- | graphics/macgui/mactextwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics/macgui/mactextwindow.cpp b/graphics/macgui/mactextwindow.cpp index 553592382d..8aabaed125 100644 --- a/graphics/macgui/mactextwindow.cpp +++ b/graphics/macgui/mactextwindow.cpp @@ -43,7 +43,7 @@ enum { static void cursorTimerHandler(void *refCon); -MacTextWindow::MacTextWindow(MacWindowManager *wm, const MacFont *font, int fgcolor, int bgcolor, int maxWidth, TextAlign textAlignment, MacMenu *menu) : +MacTextWindow::MacTextWindow(MacWindowManager *wm, const MacFont *font, int fgcolor, int bgcolor, int maxWidth, TextAlign textAlignment, MacMenu *menu, bool cursorHandler) : MacWindow(wm->getLastId(), true, true, true, wm) { _font = font; @@ -72,7 +72,8 @@ MacTextWindow::MacTextWindow(MacWindowManager *wm, const MacFont *font, int fgco _cursorSurface = new ManagedSurface(1, kCursorHeight); _cursorSurface->fillRect(*_cursorRect, _wm->_colorBlack); - g_system->getTimerManager()->installTimerProc(&cursorTimerHandler, 200000, this, "textWindowCursor"); + if (cursorHandler) + g_system->getTimerManager()->installTimerProc(&cursorTimerHandler, 200000, this, "textWindowCursor"); } void MacTextWindow::resize(int w, int h) { |