GRAPHICS: MACGUI: Replace magic numbers with named constants
This commit is contained in:
parent
e832f1d650
commit
3e96a0909d
1 changed files with 9 additions and 1 deletions
|
@ -29,6 +29,14 @@
|
||||||
|
|
||||||
namespace Graphics {
|
namespace Graphics {
|
||||||
|
|
||||||
|
enum {
|
||||||
|
kConWOverlap = 20,
|
||||||
|
kConHOverlap = 20,
|
||||||
|
kConWPadding = 3,
|
||||||
|
kConHPadding = 4,
|
||||||
|
kConOverscan = 3
|
||||||
|
};
|
||||||
|
|
||||||
static void cursorTimerHandler(void *refCon);
|
static void cursorTimerHandler(void *refCon);
|
||||||
|
|
||||||
MacTextWindow::MacTextWindow(MacWindowManager *wm, const MacFont *font, int fgcolor, int bgcolor, int maxWidth, TextAlign textAlignment) :
|
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));
|
_composeSurface.blitFrom(_surface, Common::Rect(0, 0, _surface.w - 2, _surface.h - 2), Common::Point(2, 2));
|
||||||
|
|
||||||
if (_cursorState)
|
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);
|
_composeSurface.transBlitFrom(_borderSurface, kColorGreen);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue