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/patches | |
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/patches')
-rw-r--r-- | graphics/hp2xx/patches/patch-ac | 36 |
1 files changed, 36 insertions, 0 deletions
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); ++ } + } + |