aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-08-31 22:09:34 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-08-31 22:09:34 +0200
commit904eebfd09f49f0a7537b8d6d668e095078204eb (patch)
tree64b92c190fbfc9f7f56e2efd32a2c198d80d7c96
parent85c7bffbc3cc8959416686ee80fb2f0ea4fd88c7 (diff)
minor simplification
-rw-r--r--dw/style.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dw/style.cc b/dw/style.cc
index 75f5ffff..64682180 100644
--- a/dw/style.cc
+++ b/dw/style.cc
@@ -475,8 +475,8 @@ void drawBorder (View *view, Rectangle *area,
xb1 = x + style->margin.left;
yb1 = y + style->margin.top;
- xb2 = xb1 + width - style->margin.left - style->margin.right;
- yb2 = yb1 + height - style->margin.top - style->margin.bottom;
+ xb2 = x + width - style->margin.right;
+ yb2 = y + height - style->margin.bottom;
xp1 = xb1 + style->borderWidth.top;
yp1 = yb1 + style->borderWidth.left;