diff options
| author | forsyth <forsyth@vitanuova.com> | 2010-03-25 09:26:15 +0000 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2010-03-25 09:26:15 +0000 |
| commit | 0b97835064f7a6adffa5529a9676920f6c1ad3bf (patch) | |
| tree | 861903e6a033f5382390a4e87d6d4d2a572e8026 /libtk/utils.c | |
| parent | c9ccdbd573a9ae70f739fdca280e75da310a3324 (diff) | |
20100325-0926
Diffstat (limited to 'libtk/utils.c')
| -rw-r--r-- | libtk/utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libtk/utils.c b/libtk/utils.c index 00dd9d90..b783a73d 100644 --- a/libtk/utils.c +++ b/libtk/utils.c @@ -1541,7 +1541,8 @@ tkrect(Tk *tk, int withborder) { Rectangle r; int bd; - bd = withborder ? tk->borderwidth : 0; + + bd = withborder? tk->borderwidth: 0; r.min.x = -bd; r.min.y = -bd; r.max.x = tk->act.width + bd; @@ -1910,6 +1911,7 @@ tklinehit(Point *a, int np, int w, Point p) { Point *b; int z, nx, ny, nrm; + while(np-- > 1) { b = a+1; nx = a->y - b->y; |
