aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-03-18 08:44:09 +0100
committerEugene Sandulenko2016-03-18 11:45:29 +0100
commit9707a8b359dde44e71211588607bb7202910e97a (patch)
tree4795e557bbc8d3ae55eba60b8007aca363d00964
parent1aa5f0d4c82dcc3024807c20b0df340f139df1d8 (diff)
downloadscummvm-rg350-9707a8b359dde44e71211588607bb7202910e97a.tar.gz
scummvm-rg350-9707a8b359dde44e71211588607bb7202910e97a.tar.bz2
scummvm-rg350-9707a8b359dde44e71211588607bb7202910e97a.zip
WAGE: Fixed border highlighting
-rw-r--r--engines/wage/gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp
index 95ea8fb131..0e33068804 100644
--- a/engines/wage/gui.cpp
+++ b/engines/wage/gui.cpp
@@ -355,7 +355,7 @@ void Gui::paintBorder(Graphics::Surface *g, Common::Rect &r, WindowType windowTy
int color2 = kColorWhite;
if (highlightedPart == kBorderScrollUp) {
SWAP(color1, color2);
- fillRect(g, x + width - kBorderWidth, y + size, x + width, y + height / 2);
+ fillRect(g, x + width - kBorderWidth + 2, y + size, size - 4, r.height() / 2);
}
for (int yy = 0; yy < ARROW_H; yy++) {
for (int xx = 0; xx < ARROW_W; xx++) {
@@ -366,15 +366,15 @@ void Gui::paintBorder(Graphics::Surface *g, Common::Rect &r, WindowType windowTy
}
}
}
- fillRect(g, x + width - 13, y + size + ARROW_H, 8, height - 2 * size - 1 - ARROW_H * 2, color1);
+ fillRect(g, x + width - 13, y + size + ARROW_H, 8, r.height() / 2 - ARROW_H, color1);
color1 = kColorBlack;
color2 = kColorWhite;
if (highlightedPart == kBorderScrollDown) {
SWAP(color1, color2);
- fillRect(g, x + width - kBorderWidth, y + height / 2, x + width, y + height - size);
+ fillRect(g, x + width - kBorderWidth + 2, y + size + r.height() / 2, size - 4, r.height() / 2);
}
- fillRect(g, x + width - 13, y + size + ARROW_H, 8, height - 2 * size - 1 - ARROW_H * 2, color1);
+ fillRect(g, x + width - 13, y + size + r.height() / 2, 8, r.height() / 2 - ARROW_H, color1);
y1 += height - 2 * size - ARROW_H - 2;
for (int yy = 0; yy < ARROW_H; yy++) {
for (int xx = 0; xx < ARROW_W; xx++) {