button.c: fail on negative width
This commit is contained in:
parent
cff35e88f5
commit
391c8958b1
|
@ -66,6 +66,8 @@ static int render_mid(const struct gui_button *const b,
|
|||
*x += m->w;
|
||||
}
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue