aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/mactextwindow.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2018-07-12 00:34:04 +0200
committerEugene Sandulenko2018-07-12 00:41:11 +0200
commit5684134ef6acaaeaaf9e9f9936f327874daa7f30 (patch)
treecca5cd7cd813a5cc0217a68dfe0c3cd466a664e3 /graphics/macgui/mactextwindow.cpp
parent000d5fcba8f38b579c8de40511f4f13d79acd0df (diff)
downloadscummvm-rg350-5684134ef6acaaeaaf9e9f9936f327874daa7f30.tar.gz
scummvm-rg350-5684134ef6acaaeaaf9e9f9936f327874daa7f30.tar.bz2
scummvm-rg350-5684134ef6acaaeaaf9e9f9936f327874daa7f30.zip
GRAPHICS: MACGUI: Do not use hardcoded colors
Diffstat (limited to 'graphics/macgui/mactextwindow.cpp')
-rw-r--r--graphics/macgui/mactextwindow.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/graphics/macgui/mactextwindow.cpp b/graphics/macgui/mactextwindow.cpp
index c05468c2e3..b43948af3b 100644
--- a/graphics/macgui/mactextwindow.cpp
+++ b/graphics/macgui/mactextwindow.cpp
@@ -70,7 +70,7 @@ MacTextWindow::MacTextWindow(MacWindowManager *wm, const MacFont *font, int fgco
_cursorRect = new Common::Rect(0, 0, 1, kCursorHeight);
_cursorSurface = new ManagedSurface(1, kCursorHeight);
- _cursorSurface->fillRect(*_cursorRect, kColorBlack);
+ _cursorSurface->fillRect(*_cursorRect, _wm->_colorBlack);
g_system->getTimerManager()->installTimerProc(&cursorTimerHandler, 200000, this, "textWindowCursor");
}
@@ -131,7 +131,7 @@ bool MacTextWindow::draw(ManagedSurface *g, bool forceRedraw) {
if (_borderIsDirty || forceRedraw) {
drawBorder();
- _composeSurface.clear(kColorWhite);
+ _composeSurface.clear(_wm->_colorWhite);
}
if (_inputIsDirty || forceRedraw) {
@@ -209,10 +209,10 @@ void MacTextWindow::drawSelection() {
byte *ptr = (byte *)_composeSurface.getBasePtr(x1 + kConWOverlap - 2, y + kConWOverlap - 2);
for (int x = x1; x < x2; x++, ptr++)
- if (*ptr == kColorBlack)
- *ptr = kColorWhite;
+ if (*ptr == _wm->_colorBlack)
+ *ptr = _wm->_colorWhite;
else
- *ptr = kColorBlack;
+ *ptr = _wm->_colorBlack;
}
}