aboutsummaryrefslogtreecommitdiff
path: root/engines/wage
diff options
context:
space:
mode:
authorEugene Sandulenko2016-03-17 18:51:47 +0100
committerEugene Sandulenko2016-03-18 11:45:29 +0100
commit1aa5f0d4c82dcc3024807c20b0df340f139df1d8 (patch)
tree133d2b385ee928eeba981e2ee91e31e66dd4bb48 /engines/wage
parent671d3faa7199cdea4f2214742735b36d52f0e7fa (diff)
downloadscummvm-rg350-1aa5f0d4c82dcc3024807c20b0df340f139df1d8.tar.gz
scummvm-rg350-1aa5f0d4c82dcc3024807c20b0df340f139df1d8.tar.bz2
scummvm-rg350-1aa5f0d4c82dcc3024807c20b0df340f139df1d8.zip
WAGE: Correction to highlighted border drawing
Diffstat (limited to 'engines/wage')
-rw-r--r--engines/wage/gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp
index 91a9cfe8b8..95ea8fb131 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, x + width, y + height / 2);
+ fillRect(g, x + width - kBorderWidth, y + size, x + width, y + height / 2);
}
for (int yy = 0; yy < ARROW_H; yy++) {
for (int xx = 0; xx < ARROW_W; xx++) {
@@ -372,7 +372,7 @@ void Gui::paintBorder(Graphics::Surface *g, Common::Rect &r, WindowType windowTy
color2 = kColorWhite;
if (highlightedPart == kBorderScrollDown) {
SWAP(color1, color2);
- fillRect(g, x + width - kBorderWidth, y + height / 2, x + width, y + height);
+ fillRect(g, x + width - kBorderWidth, y + height / 2, x + width, y + height - size);
}
fillRect(g, x + width - 13, y + size + ARROW_H, 8, height - 2 * size - 1 - ARROW_H * 2, color1);
y1 += height - 2 * size - ARROW_H - 2;