diff options
author | Eugene Sandulenko | 2017-07-31 19:51:29 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-08-01 10:42:22 +0200 |
commit | 3e96a0909d4c96f3994e6f3115c22ffdb28562dd (patch) | |
tree | dd1f387c3c665d3894e5fea982c71697b45bb7f7 | |
parent | e832f1d650fbd66c5a180903d06b089b30bc2a07 (diff) | |
download | scummvm-rg350-3e96a0909d4c96f3994e6f3115c22ffdb28562dd.tar.gz scummvm-rg350-3e96a0909d4c96f3994e6f3115c22ffdb28562dd.tar.bz2 scummvm-rg350-3e96a0909d4c96f3994e6f3115c22ffdb28562dd.zip |
GRAPHICS: MACGUI: Replace magic numbers with named constants
-rw-r--r-- | graphics/macgui/mactextwindow.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/graphics/macgui/mactextwindow.cpp b/graphics/macgui/mactextwindow.cpp index 19e1b7d45e..bba49292e0 100644 --- a/graphics/macgui/mactextwindow.cpp +++ b/graphics/macgui/mactextwindow.cpp @@ -29,6 +29,14 @@ namespace Graphics { +enum { + kConWOverlap = 20, + kConHOverlap = 20, + kConWPadding = 3, + kConHPadding = 4, + kConOverscan = 3 +}; + static void cursorTimerHandler(void *refCon); MacTextWindow::MacTextWindow(MacWindowManager *wm, const MacFont *font, int fgcolor, int bgcolor, int maxWidth, TextAlign textAlignment) : @@ -117,7 +125,7 @@ bool MacTextWindow::draw(ManagedSurface *g, bool forceRedraw) { _composeSurface.blitFrom(_surface, Common::Rect(0, 0, _surface.w - 2, _surface.h - 2), Common::Point(2, 2)); if (_cursorState) - _composeSurface.blitFrom(*_cursorSurface, *_cursorRect, Common::Point(_cursorX + 20, _cursorY + 20)); + _composeSurface.blitFrom(*_cursorSurface, *_cursorRect, Common::Point(_cursorX + kConWOverlap, _cursorY + kConHOverlap)); _composeSurface.transBlitFrom(_borderSurface, kColorGreen); |