diff options
-rw-r--r-- | src/button.c | 6 |
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); |