experimental rounded corners idea

This commit is contained in:
IoI_xD 2026-03-26 14:40:21 -07:00 committed by Nishi
commit 8d7016367e
16 changed files with 224 additions and 63 deletions

View file

@ -208,7 +208,7 @@ static void frame_draw(MwWidget handle) {
p.x = MwDefaultBorderWidth(handle);
p.y = MwDefaultBorderWidth(handle);
MwDrawFrame(handle, &r, base, 1);
MwDrawFrame(handle, &r, base, 1, 0);
MwDrawRect(handle, &r, base2);
r = r2;
@ -282,7 +282,7 @@ static void frame_draw(MwWidget handle) {
handle->bgcolor = NULL;
}
MwDrawFrame(handle, &r, base, 1);
MwDrawFrame(handle, &r, base, 1, 0);
MwLLFreeColor(text2);
MwLLFreeColor(text);
@ -401,7 +401,7 @@ static void draw(MwWidget handle) {
r.y = 0;
r.width = get_col_width(lb, i);
r.height = MwDefaultBorderWidth(handle) * 2 + MwTextHeight(handle, "M");
MwDrawFrame(handle, &r, base, 0);
MwDrawFrame(handle, &r, base, 0, 0);
x += MwDefaultBorderWidth(handle);