From 986ffdccc1b5c7a888628156e6c69e9a80638bda Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Mon, 27 Apr 2026 03:31:18 +0900 Subject: [PATCH] fix cursor position --- src/widget/entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/entry.c b/src/widget/entry.c index eed193f..6164af6 100644 --- a/src/widget/entry.c +++ b/src/widget/entry.c @@ -72,7 +72,7 @@ static void draw(MwWidget handle) { show[i] = 0; currc.x = p.x + MwTextWidth(handle, font, show); - currc.y = (r.height - h) / 2; + currc.y = (r.height - h) / 2 + MwDefaultBorderWidth(handle); currc.width = 1; currc.height = h; MwDrawRect(handle, &currc, text);