diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2000-10-31 18:15:45 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2000-10-31 18:15:45 +0000 |
commit | 9031b1a421272fb428cf1095aec2f91e52747948 (patch) | |
tree | bf94bcd28494b7e09737c235dae82d52483e252c /graphics/hp2xx | |
parent | e0266b96dbea6d20313140a80788a37cabab93b5 (diff) | |
download | pkgsrc-9031b1a421272fb428cf1095aec2f91e52747948.tar.gz |
fix a bug in scaling tick marks. Patch supplied by the programs
author Dr. Martin Kroeker <mk@daveg.com>
when released, the next version (3.4) will contain this fix.
Diffstat (limited to 'graphics/hp2xx')
-rw-r--r-- | graphics/hp2xx/Makefile | 3 | ||||
-rw-r--r-- | graphics/hp2xx/files/patch-sum | 3 | ||||
-rw-r--r-- | graphics/hp2xx/patches/patch-ac | 36 |
3 files changed, 40 insertions, 2 deletions
diff --git a/graphics/hp2xx/Makefile b/graphics/hp2xx/Makefile index 82613c8e119..88602ff488d 100644 --- a/graphics/hp2xx/Makefile +++ b/graphics/hp2xx/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.8 2000/08/31 12:37:01 dmcmahill Exp $ +# $NetBSD: Makefile,v 1.9 2000/10/31 18:15:45 dmcmahill Exp $ # DISTNAME= hp2xx-3.3.2 +PKGNAME= hp2xx-3.3.2nb1 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_GNU:=hp2xx/} diff --git a/graphics/hp2xx/files/patch-sum b/graphics/hp2xx/files/patch-sum index 5e36b499c16..193f8a7f3ba 100644 --- a/graphics/hp2xx/files/patch-sum +++ b/graphics/hp2xx/files/patch-sum @@ -1,6 +1,7 @@ -$NetBSD: patch-sum,v 1.2 2000/08/31 12:37:01 dmcmahill Exp $ +$NetBSD: patch-sum,v 1.3 2000/10/31 18:15:46 dmcmahill Exp $ MD5 (patch-aa) = dde4a51695bf07e015bf1e3da83df67f MD5 (patch-ab) = bacf38928f225701f121249f5828142d +MD5 (patch-ac) = 0147f547cd568f827a63b238c93e0b19 MD5 (patch-ad) = 25d811ef093fa780cf256e7d8534ac7d MD5 (patch-ae) = a2b5144f128752579c82d0bc6f89a060 diff --git a/graphics/hp2xx/patches/patch-ac b/graphics/hp2xx/patches/patch-ac new file mode 100644 index 00000000000..1cec33e33fc --- /dev/null +++ b/graphics/hp2xx/patches/patch-ac @@ -0,0 +1,36 @@ +$NetBSD: patch-ac,v 1.4 2000/10/31 18:15:46 dmcmahill Exp $ + +fix a problem scaling tick marks. it should be +fixed in the next (not yet released version 3.4) +hp2xx. + +--- hpgl.c.orig Sun Feb 13 18:19:28 2000 ++++ hpgl.c Tue Oct 31 12:57:51 2000 +@@ -1521,19 +1521,23 @@ + if (mode == 0) /* X tick */ + { +- /* dividing by Q appears to be unnecessary - MK ++ if(scale_flag){ + p1.y -= neg_ticklen * (P2.y - P1.y) / Q.y; + p2.y += pos_ticklen * (P2.y - P1.y) / Q.y; +- */ ++ } ++ else{ + p1.y -= neg_ticklen * (P2.y - P1.y) ; + p2.y += pos_ticklen * (P2.y - P1.y) ; ++ } + } + else /* Y tick */ + { +- /* ++ if (scale_flag){ + p1.x -= neg_ticklen * (P2.x - P1.x) / Q.x; + p2.x += pos_ticklen * (P2.x - P1.x) / Q.x; +- */ ++ } ++ else{ + p1.x -= neg_ticklen * (P2.x - P1.x); + p2.x += pos_ticklen * (P2.x - P1.x); ++ } + } + |