diff options
Diffstat (limited to 'geography/vis5d+/patches/patch-aa')
-rw-r--r-- | geography/vis5d+/patches/patch-aa | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/geography/vis5d+/patches/patch-aa b/geography/vis5d+/patches/patch-aa new file mode 100644 index 00000000000..4925f32df36 --- /dev/null +++ b/geography/vis5d+/patches/patch-aa @@ -0,0 +1,31 @@ +$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 ); + } + |