summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-03-23 00:15:35 +0000
committeryexo <yexo@openttd.org>2009-03-23 00:15:35 +0000
commitc91f965f0831867e9b971c119da11aed6c37077e (patch)
treef7926242d1bcac6edee6d51e876fae70b839fd74 /src
parentb61a681f025dcfbd9d2db4c15603784aaff357c4 (diff)
downloadopenttd-c91f965f0831867e9b971c119da11aed6c37077e.tar.xz
(svn r15827) -Fix (r15823): line still was a bit too long
Diffstat (limited to 'src')
-rw-r--r--src/widget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index 06e9e30e9..c03a02b27 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -426,8 +426,8 @@ void Window::DrawWidgets() const
GfxFillRect(x2, r.top + 5, r.right - 2, r.top + 5, c2);
} else {
/* Line from upper left corner to start of text */
- GfxFillRect(r.left, r.top + 4, x2, r.top + 4, c1);
- GfxFillRect(r.left + 1, r.top + 5, x2, r.top + 5, c2);
+ GfxFillRect(r.left, r.top + 4, x2 - 2, r.top + 4, c1);
+ GfxFillRect(r.left + 1, r.top + 5, x2 - 2, r.top + 5, c2);
/* Line from end of text to upper right corner */
GfxFillRect(r.right - 5, r.top + 4, r.right - 1, r.top + 4, c1);