diff options
Diffstat (limited to 'src/bltGrElemLine.C')
-rw-r--r-- | src/bltGrElemLine.C | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/bltGrElemLine.C b/src/bltGrElemLine.C index b056cb1..78101e0 100644 --- a/src/bltGrElemLine.C +++ b/src/bltGrElemLine.C @@ -43,8 +43,6 @@ #include "bltBitmap.h" #include "bltConfig.h" -#define PointInRegion(e,x,y) (((x) <= (e)->right) && ((x) >= (e)->left) && ((y) <= (e)->bottom) && ((y) >= (e)->top)) - typedef enum { PEN_INCREASING, PEN_DECREASING, PEN_BOTH_DIRECTIONS } PenDirection; @@ -52,14 +50,11 @@ typedef enum { /* Lines will be drawn between points regardless of the ordering of the * abscissas */ +#define PointInRegion(e,x,y) (((x) <= (e)->right) && ((x) >= (e)->left) && ((y) <= (e)->bottom) && ((y) >= (e)->top)) + #define BROKEN_TRACE(dir,last,next) \ (((dir == PEN_INCREASING) && (next < last)) || \ ((dir == PEN_DECREASING) && (next > last))) -/* -#define BROKEN_TRACE(dir,last,next) \ - (((((dir) & PEN_DECREASING) == 0) && ((next) < (last))) || \ - ((((dir) & PEN_INCREASING) == 0) && ((next) > (last)))) -*/ #define DRAW_SYMBOL(linePtr) \ (((linePtr)->symbolCounter % (linePtr)->symbolInterval) == 0) |