Width and height cannot be negative in geometry.

master
Christoph Lohmann 13 years ago
parent c63a877003
commit ef52905a3f
  1. 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…
Cancel
Save