From 65917ff9a8c9dda0eae63b468cbe9c0152a46958 Mon Sep 17 00:00:00 2001 From: garbeam Date: Wed, 21 Dec 2005 16:03:57 +0200 Subject: [PATCH] added small strtorect fix --- liblitz/geometry.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/liblitz/geometry.c b/liblitz/geometry.c index c080d453..7f0ed433 100644 --- 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;