commit 65917ff9a8c9dda0eae63b468cbe9c0152a46958
parent 9c467cb612a3e62a790de507b95f0b8dd74611cf
Author: garbeam <garbeam@mmv.wmii.de>
Date: Wed, 21 Dec 2005 16:03:57 +0200
added small strtorect fix
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/liblitz/geometry.c b/liblitz/geometry.c
@@ -54,6 +54,10 @@ int blitz_strtorect(XRectangle *root, XRectangle *r, char *val)
if (!val)
return FALSE;
+ rx = r->x;
+ ry = r->y;
+ rw = r->width;
+ rh = r->height;
sx = sy = sw = sh = 0;
x = y = w = h = 0;
cext_strlcpy(buf, val, sizeof(buf));
@@ -182,9 +186,9 @@ int blitz_strtorect(XRectangle *root, XRectangle *r, char *val)
}
if (rw < 1)
- rw = 1;
+ rw = 10;
if (rh < 1)
- rh = 1;
+ rh = 10;
r->x = rx;
r->y = ry;
r->width = rw;