Width and height cannot be negative in geometry.
This commit is contained in:
parent
c63a877003
commit
ef52905a3f
1 changed files with 0 additions and 4 deletions
4
svkbd.c
4
svkbd.c
|
@ -459,12 +459,8 @@ setup(void) {
|
||||||
countrows();
|
countrows();
|
||||||
if(!ww)
|
if(!ww)
|
||||||
ww = sw;
|
ww = sw;
|
||||||
if(ww < 0)
|
|
||||||
ww = sw + ww + 1;
|
|
||||||
if(!wh)
|
if(!wh)
|
||||||
wh = sh * rows / 32;
|
wh = sh * rows / 32;
|
||||||
if(wh < 0)
|
|
||||||
wh = sh + wh + 1;
|
|
||||||
|
|
||||||
if(!wx)
|
if(!wx)
|
||||||
wx = 0;
|
wx = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue