aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-26 10:48:02 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-26 10:48:02 +0200
commit42784855b7365fcddd9206b91c187f2ea4b2299e (patch)
treecfc801e3950db94ae04b11b3fced3853111a461d /src
parent48aac8801df86e743f5890a3cdc4882d0af89a4e (diff)
downloadjwm-42784855b7365fcddd9206b91c187f2ea4b2299e.tar.gz
Make buttons rectangular
Previously, they had slightly rounded corners.
Diffstat (limited to 'src')
-rw-r--r--src/button.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/button.c b/src/button.c
index ca40644..2d9a74e 100644
--- a/src/button.c
+++ b/src/button.c
@@ -85,15 +85,15 @@ DrawButton(ButtonNode *bp)
JXFillRectangle(display, drawable, gc, x + 2, y + 2, width - 3, height - 3);
JXSetForeground(display, gc, outlinePixel);
- JXDrawLine(display, drawable, gc, x + 1, y, x + width - 1, y);
+ JXDrawLine(display, drawable, gc, x, y, x + width - 1, y);
JXDrawLine(display, drawable, gc, x + 1, y + height, x + width - 1,
y + height);
JXDrawLine(display, drawable, gc, x, y + 1, x, y + height - 1);
JXDrawLine(display, drawable, gc, x + width, y + 1, x + width,
- y + height - 1);
+ y + height);
JXSetForeground(display, gc, topPixel);
- JXDrawLine(display, drawable, gc, x + 1, y + 1, x + width - 2, y + 1);
+ JXDrawLine(display, drawable, gc, x + 1, y + 1, x + width - 1, y + 1);
JXDrawLine(display, drawable, gc, x + 1, y + 2, x + 1, y + height - 2);
JXSetForeground(display, gc, bottomPixel);