From 0d79141a49009b69904f16f33317385905f14729 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Thu, 25 Dec 2025 04:21:33 +0900 Subject: [PATCH] tiny fix --- src/widget/submenu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widget/submenu.c b/src/widget/submenu.c index c9e2e37..6b97934 100644 --- a/src/widget/submenu.c +++ b/src/widget/submenu.c @@ -67,9 +67,9 @@ static void draw(MwWidget handle) { int th = MwTextHeight(handle, menu->sub[i]->name); if(menu->sub[i]->wsub != NULL) { - r.x = 0; + r.x = MwGetInteger(handle, MwNleftPadding); r.y = p.y - 3; - r.width = MwGetInteger(handle, MwNwidth); + r.width = MwGetInteger(handle, MwNwidth) - MwGetInteger(handle, MwNleftPadding); r.height = th + 3 * 2; MwDrawWidgetBack(handle, &r, base, 0, MwTRUE); }