aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/mactextwindow.cpp
diff options
context:
space:
mode:
authorAndrei Prykhodko2018-07-29 21:16:44 +0300
committerAndrei Prykhodko2018-07-29 21:23:04 +0300
commit75eceedfa515c652d0698de11a9f605fe23c336d (patch)
treef56b56f5f54e72c803e5bd654a1c59eb0ba0f59d /graphics/macgui/mactextwindow.cpp
parent841e0c11d82fe784b9153d0cb6fff3063969ca41 (diff)
downloadscummvm-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.cpp5
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) {