From 24ff5ce95604a6293722dfea0acc13b1451ffa75 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sun, 16 Nov 2025 00:42:37 +0000 Subject: [PATCH] forgor git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@737 b9cfdab3-6d41-4d17-bbe4-086880011989 --- src/widget/separator.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/widget/separator.c b/src/widget/separator.c index 7528aff..4b13509 100644 --- a/src/widget/separator.c +++ b/src/widget/separator.c @@ -20,11 +20,11 @@ static void draw(MwWidget handle) { MwDrawRect(handle, &r, base); if(MwGetInteger(handle, MwNorientation) == MwVERTICAL) { - r.x = (r.width - MwDefaultBorderWidth(handle) * 2) / 2; - r.width = MwDefaultBorderWidth(handle) * 2; + r.x = (r.width - 2) / 2; + r.width = 2; } else if(MwGetInteger(handle, MwNorientation) == MwHORIZONTAL) { - r.y = (r.height - MwDefaultBorderWidth(handle) * 2) / 2; - r.height = MwDefaultBorderWidth(handle) * 2; + r.y = (r.height - 2) / 2; + r.height = 2; } MwDrawFrameEx(handle, &r, base, 1, 1, 0);