diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2000-11-15 23:05:05 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2000-11-15 23:05:05 +0000 |
commit | b037f51443a6b7a2683b41ac3ca727f7ba257c0e (patch) | |
tree | f2c3a0a2bf9ee880f090f6b25ef80e6ba5c06695 | |
parent | 81a9c44a9c890a0dc9b7ff1fffa6a775b79fb7cd (diff) | |
download | pkgsrc-b037f51443a6b7a2683b41ac3ca727f7ba257c0e.tar.gz |
fix a bug when plotting single points. ie, commands like:
;PU;PA 50,200;PD;PU;
this now actually puts a single dot at 50,200
many thanks to the programs author, Dr. Martin Kroeker <mk@daveg.com>
for supplying the patch.
-rw-r--r-- | graphics/hp2xx/Makefile | 4 | ||||
-rw-r--r-- | graphics/hp2xx/files/patch-sum | 4 | ||||
-rw-r--r-- | graphics/hp2xx/patches/patch-ac | 32 |
3 files changed, 30 insertions, 10 deletions
diff --git a/graphics/hp2xx/Makefile b/graphics/hp2xx/Makefile index 88602ff488d..d5de5280720 100644 --- a/graphics/hp2xx/Makefile +++ b/graphics/hp2xx/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.9 2000/10/31 18:15:45 dmcmahill Exp $ +# $NetBSD: Makefile,v 1.10 2000/11/15 23:05:05 dmcmahill Exp $ # DISTNAME= hp2xx-3.3.2 -PKGNAME= hp2xx-3.3.2nb1 +PKGNAME= hp2xx-3.3.2nb2 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_GNU:=hp2xx/} diff --git a/graphics/hp2xx/files/patch-sum b/graphics/hp2xx/files/patch-sum index 193f8a7f3ba..be7921233d4 100644 --- a/graphics/hp2xx/files/patch-sum +++ b/graphics/hp2xx/files/patch-sum @@ -1,7 +1,7 @@ -$NetBSD: patch-sum,v 1.3 2000/10/31 18:15:46 dmcmahill Exp $ +$NetBSD: patch-sum,v 1.4 2000/11/15 23:05:06 dmcmahill Exp $ MD5 (patch-aa) = dde4a51695bf07e015bf1e3da83df67f MD5 (patch-ab) = bacf38928f225701f121249f5828142d -MD5 (patch-ac) = 0147f547cd568f827a63b238c93e0b19 +MD5 (patch-ac) = b4655ce18f25478c0b413ab34394514b MD5 (patch-ad) = 25d811ef093fa780cf256e7d8534ac7d MD5 (patch-ae) = a2b5144f128752579c82d0bc6f89a060 diff --git a/graphics/hp2xx/patches/patch-ac b/graphics/hp2xx/patches/patch-ac index 1cec33e33fc..062df3dc464 100644 --- a/graphics/hp2xx/patches/patch-ac +++ b/graphics/hp2xx/patches/patch-ac @@ -1,12 +1,32 @@ -$NetBSD: patch-ac,v 1.4 2000/10/31 18:15:46 dmcmahill Exp $ +$NetBSD: patch-ac,v 1.5 2000/11/15 23:05:06 dmcmahill Exp $ -fix a problem scaling tick marks. it should be -fixed in the next (not yet released version 3.4) -hp2xx. +-fix a problem scaling tick marks. + +- also fix a bug when plotting single points. (ie, + commands like + ;PU;PA 50,200;PD;PU; + now actually put a single dot at 50,200 + +both of these are 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 @@ ++++ hpgl.c Wed Nov 15 14:10:36 2000 +@@ -1126,7 +1126,11 @@ + for ( ; ; ) + { +- if (read_float (&p.x, hd)) /* No number found */ ++ if (read_float (&p.x, hd)){ /* No number found */ ++ if(pen_down){ /*simulate dot created by 'real' pen */ ++ Pen_action_to_tmpfile (MOVE_TO, &p_last,scale_flag); ++ Pen_action_to_tmpfile (DRAW_TO, &p_last,scale_flag); ++ } + return ; +- ++ } + if (read_float (&p.y, hd)) /* x without y invalid! */ + par_err_exit (2,PA); +@@ -1521,19 +1525,23 @@ if (mode == 0) /* X tick */ { - /* dividing by Q appears to be unnecessary - MK |