diff options
author | Shigeyuki Fukushima <shige@FreeBSD.org> | 2000-01-11 15:52:35 +0000 |
---|---|---|
committer | Shigeyuki Fukushima <shige@FreeBSD.org> | 2000-01-11 15:52:35 +0000 |
commit | d0094e951a8f7bd1f793e0cd66cc6ed91b034a58 (patch) | |
tree | db5ef3978ff9d2fc60f3bf46216c152189bffdb9 /japanese/iv/files/patch-cm | |
parent | Add explanation of `locale warning message' to DESCR and MESSAGE. (diff) |
Fix build error under 4-current and new egcs/C++ compiler.
PR: ports/16024
Submitted by: MIHIRA Yoshiro <sanpei@sanpei.org>
Diffstat (limited to 'japanese/iv/files/patch-cm')
-rw-r--r-- | japanese/iv/files/patch-cm | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/japanese/iv/files/patch-cm b/japanese/iv/files/patch-cm new file mode 100644 index 000000000000..4039a45aaaed --- /dev/null +++ b/japanese/iv/files/patch-cm @@ -0,0 +1,117 @@ +diff -Ncr src/bin/idraw/idarrows.c src/bin/idraw/idarrows.c +*** src/bin/idraw/idarrows.c Sat Feb 6 19:11:32 1999 +--- src/bin/idraw/idarrows.c Sat Feb 6 19:05:49 1999 +*************** +*** 295,311 **** + } + + boolean ArrowMultiLine::contains (PointObj& po, Graphic* gs) { +! return +! SF_MultiLine::contains(po, gs) || +! Head() && ArrowheadContains(_head, po, gs) || +! Tail() && ArrowheadContains(_tail, po, gs); + } + + boolean ArrowMultiLine::intersects (BoxObj& bo, Graphic* gs) { +! return +! SF_MultiLine::intersects(bo, gs) || +! Head() && ArrowheadIntersects(_head, bo, gs) || +! Tail() && ArrowheadIntersects(_tail, bo, gs); + } + + void ArrowMultiLine::draw (Canvas* c, Graphic* gs) { +--- 295,331 ---- + } + + boolean ArrowMultiLine::contains (PointObj& po, Graphic* gs) { +! PSPattern *pat; +! boolean ret; +! +! if (Head() || Tail()) { +! pat = gs->GetPattern(); +! gs->SetPattern(psnonepat); +! } +! ret = (SF_MultiLine::contains(po, gs) +! || (Head() && ArrowheadContains(_head, po, gs)) +! || (Tail() && ArrowheadContains(_tail, po, gs))); +! if (Head() || Tail()) { +! gs->SetPattern(pat); +! } +! return ret; + } + + boolean ArrowMultiLine::intersects (BoxObj& bo, Graphic* gs) { +! PSPattern *pat; +! boolean ret; +! +! if (Head() || Tail()) { +! pat = gs->GetPattern(); +! gs->SetPattern(psnonepat); +! } +! ret = (SF_MultiLine::intersects(bo, gs) +! || (Head() && ArrowheadIntersects(_head, bo, gs)) +! || (Tail() && ArrowheadIntersects(_tail, bo, gs))); +! if (Head() || Tail()) { +! gs->SetPattern(pat); +! } +! return ret; + } + + void ArrowMultiLine::draw (Canvas* c, Graphic* gs) { +*************** +*** 486,502 **** + } + + boolean ArrowOpenBSpline::contains (PointObj& po, Graphic* gs) { +! return +! SFH_OpenBSpline::contains(po, gs) || +! Head() && ArrowheadContains(_head, po, gs) || +! Tail() && ArrowheadContains(_tail, po, gs); + } + + boolean ArrowOpenBSpline::intersects (BoxObj& bo, Graphic* gs) { +! return +! SFH_OpenBSpline::intersects(bo, gs) || +! Head() && ArrowheadIntersects(_head, bo, gs) || +! Tail() && ArrowheadIntersects(_tail, bo, gs); + } + + void ArrowOpenBSpline::draw (Canvas* c, Graphic* gs) { +--- 506,542 ---- + } + + boolean ArrowOpenBSpline::contains (PointObj& po, Graphic* gs) { +! PSPattern *pat; +! boolean ret; +! +! if (Head() || Tail()) { +! pat = gs->GetPattern(); +! gs->SetPattern(psnonepat); +! } +! ret = (SFH_OpenBSpline::contains(po, gs) +! || (Head() && ArrowheadContains(_head, po, gs)) +! || (Tail() && ArrowheadContains(_tail, po, gs))); +! if (Head() || Tail()) { +! gs->SetPattern(pat); +! } +! return ret; + } + + boolean ArrowOpenBSpline::intersects (BoxObj& bo, Graphic* gs) { +! PSPattern *pat; +! boolean ret; +! +! if (Head() || Tail()) { +! pat = gs->GetPattern(); +! gs->SetPattern(psnonepat); +! } +! ret = (SFH_OpenBSpline::intersects(bo, gs) +! || (Head() && ArrowheadIntersects(_head, bo, gs)) +! || (Tail() && ArrowheadIntersects(_tail, bo, gs))); +! if (Head() || Tail()) { +! gs->SetPattern(pat); +! } +! return ret; + } + + void ArrowOpenBSpline::draw (Canvas* c, Graphic* gs) { |