This commit is contained in:
Nishi 2026-09-17 03:36:00 +09:00
commit 74054fba4b
2 changed files with 5 additions and 2 deletions

View file

@ -138,6 +138,9 @@ void MwDrawRectLine(MwWidget handle, MwRect* rect, MwLLColor color) {
MwFixRect(&r);
r.width--;
r.height--;
p[0].x = r.x;
p[0].y = r.y;

View file

@ -514,7 +514,7 @@ static void layout(MwWidget handle) {
{
int t = MwTextWidth(handle, TOPFONT, l->text);
if(x > 0) x += MwTextWidth(handle, TOPFONT, " ");
if(x > 0) x += MwTextWidth(handle, TOPFONT, ".");
if((x + t) >= w) {
x = 0;
@ -543,7 +543,7 @@ static void layout(MwWidget handle) {
}
case MwDOCUMENT_SPACE:
{
x += MwTextWidth(handle, TOPFONT, " ");
x += MwTextWidth(handle, TOPFONT, ".");
break;
}
case MwDOCUMENT_NEWLINE: