diff options
author | lecoanet | 2000-03-10 12:26:22 +0000 |
---|---|---|
committer | lecoanet | 2000-03-10 12:26:22 +0000 |
commit | e30b457593a18117c53216f1cb3c5129c53b19d8 (patch) | |
tree | 99260046163106962abe35dd4993fce4632159d2 /generic | |
parent | 3cab036778c7944d283bfc2e51cdf596c1a2a470 (diff) | |
download | tkzinc-e30b457593a18117c53216f1cb3c5129c53b19d8.zip tkzinc-e30b457593a18117c53216f1cb3c5129c53b19d8.tar.gz tkzinc-e30b457593a18117c53216f1cb3c5129c53b19d8.tar.bz2 tkzinc-e30b457593a18117c53216f1cb3c5129c53b19d8.tar.xz |
*** empty log message ***
Diffstat (limited to 'generic')
-rw-r--r-- | generic/Draw.h | 3 | ||||
-rw-r--r-- | generic/Geo.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/generic/Draw.h b/generic/Draw.h index 6005b8d..d768c1d 100644 --- a/generic/Draw.h +++ b/generic/Draw.h @@ -60,6 +60,9 @@ void GetPolygonReliefBBox(ZnList points, unsigned int line_width, ZnBBox *bbox); double PolygonReliefToPointDist(ZnList points, unsigned int line_width, ZnPoint *pp); +void DrawRectangleRelief(struct _WidgetInfo *wi, + ReliefStyle relief, ZnColorGradient gradient, + XRectangle *bbox, unsigned int line_width); void DrawPolygonRelief(struct _WidgetInfo *wi, ReliefStyle relief, ZnColorGradient gradient, ZnPoint *points, int num_points, int line_width); diff --git a/generic/Geo.c b/generic/Geo.c index 069f53c..2ae242b 100644 --- a/generic/Geo.c +++ b/generic/Geo.c @@ -498,10 +498,11 @@ ShiftLine(ZnPoint *p1, else { dy_neg = False; } - if ((ABS(dy) < PRECISION_LIMIT) && (ABS(dx) < PRECISION_LIMIT)) { + if ((dy < PRECISION_LIMIT) && (dx < PRECISION_LIMIT)) { printf("ShiftLine: segment is a point\n"); return; } + if (dy <= dx) { dy = ((dist * shift_table[(dy*128)/dx]) + 64) / 128; if (!dx_neg) { |