Width and height cannot be negative in geometry.

This commit is contained in:
Christoph Lohmann 2011-10-09 18:08:18 +02:00
parent c63a877003
commit ef52905a3f

View File

@ -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;