summaryrefslogtreecommitdiffstats
path: root/src/bltGrElemLine.C
diff options
context:
space:
mode:
authorjoye <joye>2014-03-10 18:29:42 (GMT)
committerjoye <joye>2014-03-10 18:29:42 (GMT)
commit8e4920de5c68bb7414022f636c2d34540bea151e (patch)
tree29f3763ee1b96c8746d78925d7dc6705a8b8a394 /src/bltGrElemLine.C
parent81055e8a75d7d4737265187e6ecc2fa33be6e75e (diff)
downloadblt-8e4920de5c68bb7414022f636c2d34540bea151e.zip
blt-8e4920de5c68bb7414022f636c2d34540bea151e.tar.gz
blt-8e4920de5c68bb7414022f636c2d34540bea151e.tar.bz2
*** empty log message ***
Diffstat (limited to 'src/bltGrElemLine.C')
-rw-r--r--src/bltGrElemLine.C9
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)