$NetBSD: patch-ab,v 1.1.1.1 2001/03/30 00:25:20 hubertf Exp $ --- kchart/enginedraw.cc.orig Sat Aug 26 10:53:37 2000 +++ kchart/enginedraw.cc @@ -73,7 +73,7 @@ // %d, %d, %d,\nshadow color 0 = %d, %d, %d,\ncolor 1 = %d, %d, %d,\nshadow color 1 = %d, %d, %d", clr[0].red(), clr[0].green(), clr[0].blue(), clrshd[0].red(), clrshd[0].green(), clrshd[0].blue(), clr[1].red(), clr[1].green(), clr[1].blue(), clrshd[1].red(), clrshd[1].green(), clrshd[1].blue() ); #define F(x,i) (int)( (float)((x)-x1)*slope[i]+(float)y1[i] ) - float depth_slope = xdepth==0? MAXFLOAT: (float)ydepth/(float)xdepth; + float depth_slope = xdepth==0? FLT_MAX: (float)ydepth/(float)xdepth; float *slope = new float[num_sets]; int *lnclr = new int[num_sets]; int *shclr = new int[num_sets]; @@ -85,7 +85,7 @@ for( i=0; i y0 && y2 < y0) || // line crosses y0 (y1 < y0 && y2 > y0)? (int)((1.0/ABS(line_slope))*(float)(ABS(y1-y0)))+x1:0; // never