From 9a54642942ab68d2978b1b29fa71c344899340ae Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Tue, 18 Nov 2025 08:53:54 +0000 Subject: [PATCH] fix git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@753 b9cfdab3-6d41-4d17-bbe4-086880011989 --- src/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/draw.c b/src/draw.c index 8f84bb7..5283bb3 100644 --- a/src/draw.c +++ b/src/draw.c @@ -132,7 +132,7 @@ void MwDrawFrame(MwWidget handle, MwRect* rect, MwLLColor color, int invert) { } else { int diff = get_color_diff(handle) / 3 * 2; - MwDrawFrameEx(handle, rect, color, invert, MwDefaultBorderWidth(handle) / 2, -diff, handle->parent == NULL ? 1 : 0); + MwDrawFrameEx(handle, rect, color, invert, MwDefaultBorderWidth(handle) / 2, -diff, (handle->parent == NULL || handle->parent->lowlevel == NULL) ? 1 : 0); MwDrawFrameEx(handle, rect, color, invert, MwDefaultBorderWidth(handle) / 2, diff, 0); } }