button.c: fail on negative width

This commit is contained in:
Xavier Del Campo Romero 2022-06-29 01:01:03 +02:00
parent cff35e88f5
commit 391c8958b1
1 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,8 @@ static int render_mid(const struct gui_button *const b,
*x += m->w;
}
}
else
return -1;
return 0;
}