This commit is contained in:
parent
de5e26b128
commit
74054fba4b
2 changed files with 5 additions and 2 deletions
|
|
@ -138,6 +138,9 @@ void MwDrawRectLine(MwWidget handle, MwRect* rect, MwLLColor color) {
|
||||||
|
|
||||||
MwFixRect(&r);
|
MwFixRect(&r);
|
||||||
|
|
||||||
|
r.width--;
|
||||||
|
r.height--;
|
||||||
|
|
||||||
p[0].x = r.x;
|
p[0].x = r.x;
|
||||||
p[0].y = r.y;
|
p[0].y = r.y;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -514,7 +514,7 @@ static void layout(MwWidget handle) {
|
||||||
{
|
{
|
||||||
int t = MwTextWidth(handle, TOPFONT, l->text);
|
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) {
|
if((x + t) >= w) {
|
||||||
x = 0;
|
x = 0;
|
||||||
|
|
@ -543,7 +543,7 @@ static void layout(MwWidget handle) {
|
||||||
}
|
}
|
||||||
case MwDOCUMENT_SPACE:
|
case MwDOCUMENT_SPACE:
|
||||||
{
|
{
|
||||||
x += MwTextWidth(handle, TOPFONT, " ");
|
x += MwTextWidth(handle, TOPFONT, ".");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case MwDOCUMENT_NEWLINE:
|
case MwDOCUMENT_NEWLINE:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue