(tty_draw_box): do nothing if width or heigth of box is less than 1.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2012-03-30 12:50:22 +04:00 committed by Slava Zanko
parent 58cf4e735c
commit 2fe6ab5e9f

View File

@ -179,6 +179,9 @@ tty_draw_box (int y, int x, int ys, int xs, gboolean single)
{
int y2, x2;
if (ys <= 0 || xs <= 0)
return;
ys--;
xs--;