summaryrefslogtreecommitdiffstats
path: root/tkblt
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2019-03-22 19:06:40 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2019-03-22 19:06:40 (GMT)
commit9ad62c8e5da9e0dad8b1d0c4f07b3acc9f9ed89f (patch)
tree220b8b582db66e08036bd85d51acd88c6b0f7bf7 /tkblt
parent2b15b42cf7b85d3854d2c1181cb09eb20d1ea6dc (diff)
downloadblt-9ad62c8e5da9e0dad8b1d0c4f07b3acc9f9ed89f.zip
blt-9ad62c8e5da9e0dad8b1d0c4f07b3acc9f9ed89f.tar.gz
blt-9ad62c8e5da9e0dad8b1d0c4f07b3acc9f9ed89f.tar.bz2
partial backout of zero value logscale merge
Diffstat (limited to 'tkblt')
-rw-r--r--tkblt/generic/tkbltGrMisc.h22
1 files changed, 1 insertions, 21 deletions
diff --git a/tkblt/generic/tkbltGrMisc.h b/tkblt/generic/tkbltGrMisc.h
index 5c16dce..ba86b75 100644
--- a/tkblt/generic/tkbltGrMisc.h
+++ b/tkblt/generic/tkbltGrMisc.h
@@ -104,26 +104,6 @@ namespace Blt {
int offset;
} Dashes;
- typedef enum {
- CLIP_OUTSIDE = 0,
- CLIP_INSIDE = 1 << 0,
- CLIP_P = 1 << 1,
- CLIP_Q = 1 << 2
- } LineRectClipResult;
-
- inline LineRectClipResult operator|(LineRectClipResult a, LineRectClipResult b) {
- return static_cast<LineRectClipResult>(static_cast<int>(a) | static_cast<int>(b));
- }
-
- inline LineRectClipResult operator&(LineRectClipResult a, LineRectClipResult b) {
- return static_cast<LineRectClipResult>(static_cast<int>(a) & static_cast<int>(b));
- }
-
- inline LineRectClipResult & operator|=(LineRectClipResult & rhs, LineRectClipResult v) {
- rhs = rhs | v;
- return rhs;
- }
-
extern char* dupstr(const char*);
extern Graph* getGraphFromWindowData(Tk_Window tkwin);
@@ -131,7 +111,7 @@ namespace Blt {
int nScreenPts);
extern int polyRectClip(Region2d *extsPtr, Point2d *inputPts,
int nInputPts, Point2d *outputPts);
- extern LineRectClipResult lineRectClip(Region2d *regionPtr, Point2d *p, Point2d *q);
+ extern int lineRectClip(Region2d *regionPtr, Point2d *p, Point2d *q);
extern Point2d getProjection (int x, int y, Point2d *p, Point2d *q);
};