aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2015-12-27 00:51:18 +0100
committerEugene Sandulenko2015-12-27 15:41:03 +0100
commit357d956a839c6c419fde11b2fa72450234c1c183 (patch)
treeb3a5b838936ca952ce645821cf59bb8421398053 /engines
parentcd063ec0e8e3870f1d2386bd138010b370c79a85 (diff)
downloadscummvm-rg350-357d956a839c6c419fde11b2fa72450234c1c183.tar.gz
scummvm-rg350-357d956a839c6c419fde11b2fa72450234c1c183.tar.bz2
scummvm-rg350-357d956a839c6c419fde11b2fa72450234c1c183.zip
WAGE: More improvements to the border drawing
Diffstat (limited to 'engines')
-rw-r--r--engines/wage/gui.cpp8
-rw-r--r--engines/wage/wage.cpp2
2 files changed, 7 insertions, 3 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp
index 2207e8e938..053abbf688 100644
--- a/engines/wage/gui.cpp
+++ b/engines/wage/gui.cpp
@@ -104,7 +104,9 @@ void Gui::paintBorder(Graphics::Surface *g, int x, int y, int width, int height,
for (int yy = 0; yy < ARROW_H; yy++) {
for (int xx = 0; xx < ARROW_W; xx++) {
if (arrowPixels[yy][xx] != 0) {
- g->hLine(x1+xx, y1+yy, 1, 0);
+ g->hLine(x1+xx, y1+yy, x1+xx+1, kColorBlack);
+ } else {
+ g->hLine(x1+xx, y1+yy, x1+xx+1, kColorWhite);
}
}
}
@@ -113,7 +115,9 @@ void Gui::paintBorder(Graphics::Surface *g, int x, int y, int width, int height,
for (int yy = 0; yy < ARROW_H; yy++) {
for (int xx = 0; xx < ARROW_W; xx++) {
if (arrowPixels[ARROW_H-yy-1][xx] != 0) {
- g->hLine(x1+xx, y1+yy, 1, 0);
+ g->hLine(x1+xx, y1+yy, x1+xx+1, kColorBlack);
+ } else {
+ g->hLine(x1+xx, y1+yy, x1+xx+1, kColorWhite);
}
}
}
diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp
index 882b11567b..b9ee574d52 100644
--- a/engines/wage/wage.cpp
+++ b/engines/wage/wage.cpp
@@ -129,7 +129,7 @@ Common::Error WageEngine::run() {
scene->paint(&screen);
_gui->paintBorder(&screen, 0, 0, scene->_design->getBounds()->width(), scene->_design->getBounds()->height(),
- true, false, true, false);
+ true, true, true, false);
g_system->copyRectToScreen(screen.getPixels(), screen.pitch, 0, 0, screen.w, screen.h);