From 42784855b7365fcddd9206b91c187f2ea4b2299e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 26 Jul 2021 10:48:02 +0200 Subject: Make buttons rectangular Previously, they had slightly rounded corners. --- src/button.c | 6 +++--- 1 file 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); -- cgit v1.2.3