diff options
author | Eugene Sandulenko | 2016-04-15 10:15:29 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-04-15 17:24:15 +0200 |
commit | cb06c712c7d3a99bdcae4f77cb88a854388f0944 (patch) | |
tree | 23a1fe3852108cbd566b9bb8cbfc9aca68438f7c /engines | |
parent | 6a415da6b970a8922dcdeea31d35b836289533d9 (diff) | |
download | scummvm-rg350-cb06c712c7d3a99bdcae4f77cb88a854388f0944.tar.gz scummvm-rg350-cb06c712c7d3a99bdcae4f77cb88a854388f0944.tar.bz2 scummvm-rg350-cb06c712c7d3a99bdcae4f77cb88a854388f0944.zip |
WAGE: Fix border clipping
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wage/gui.cpp | 4 | ||||
-rw-r--r-- | engines/wage/macwindow.cpp | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp index f20f18c233..6914fdbf49 100644 --- a/engines/wage/gui.cpp +++ b/engines/wage/gui.cpp @@ -68,7 +68,7 @@ static const byte palette[] = { 0x80, 0x80, 0x80, // Gray 0xff, 0xff, 0xff, // White 0x00, 0xff, 0x00, // Green - 0x00, 0x7f, 0x00 // Green2 + 0x00, 0xcf, 0x00 // Green2 }; static byte fillPatterns[][8] = { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, // kPatternSolid @@ -171,7 +171,7 @@ Gui::Gui(WageEngine *engine) { _inputTextLineNum = 0; - g_system->getPaletteManager()->setPalette(palette, 0, 4); + g_system->getPaletteManager()->setPalette(palette, 0, ARRAYSIZE(palette) / 3); CursorMan.replaceCursorPalette(palette, 0, 4); CursorMan.replaceCursor(macCursorArrow, 11, 16, 1, 1, 3); diff --git a/engines/wage/macwindow.cpp b/engines/wage/macwindow.cpp index d1b65640aa..865bd2dab4 100644 --- a/engines/wage/macwindow.cpp +++ b/engines/wage/macwindow.cpp @@ -147,8 +147,11 @@ void MacWindow::drawBorder() { int height = _borderSurface.h; Graphics::ManagedSurface *g = &_borderSurface; + // We draw rect with outer kColorGreen2 and inner kColorGreen, so on 2 passes we cut out + // scene by external shape of the border + int sz = kBorderWidth / 2; g->clear(kColorGreen2); - g->fillRect(Common::Rect(kBorderWidth, kBorderWidth, width - kBorderWidth, height - kBorderWidth), kColorGreen); + g->fillRect(Common::Rect(sz, sz, width - sz, height - sz), kColorGreen); drawBox(g, x, y, size, size); drawBox(g, x + width - size - 1, y, size, size); |