$NetBSD: patch-aa,v 1.1 2004/09/08 16:10:08 wiz Exp $ --- src/misc.c.orig 2001-11-07 12:53:12.000000000 +0100 +++ src/misc.c @@ -147,7 +147,7 @@ int installed( char *program ) /*** round ************************************************************ Round off x to a 'nice' value. **********************************************************************/ -float round( float x ) +float roundnice( float x ) { float base, fudge; int temp; @@ -273,7 +273,7 @@ void init_graphics_pos( Context ctx, int ctx->Variable[var]->HSliceRequest->Interval = 0.0; } else { - ctx->Variable[var]->HSliceRequest->Interval = round( (ctx->Variable[var]->MaxVal - ctx->Variable[var]->MinVal) + ctx->Variable[var]->HSliceRequest->Interval = roundnice( (ctx->Variable[var]->MaxVal - ctx->Variable[var]->MinVal) / 10.0 ); } @@ -309,7 +309,7 @@ void init_graphics_pos( Context ctx, int ctx->Variable[var]->VSliceRequest->Interval = 0.0; } else { - ctx->Variable[var]->VSliceRequest->Interval = round( (ctx->Variable[var]->MaxVal - ctx->Variable[var]->MinVal) + ctx->Variable[var]->VSliceRequest->Interval = roundnice( (ctx->Variable[var]->MaxVal - ctx->Variable[var]->MinVal) / 10.0 ); }