summaryrefslogtreecommitdiff
path: root/print/ghostscript-esp/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'print/ghostscript-esp/patches/patch-af')
-rw-r--r--print/ghostscript-esp/patches/patch-af48
1 files changed, 48 insertions, 0 deletions
diff --git a/print/ghostscript-esp/patches/patch-af b/print/ghostscript-esp/patches/patch-af
new file mode 100644
index 00000000000..e84e9b4b208
--- /dev/null
+++ b/print/ghostscript-esp/patches/patch-af
@@ -0,0 +1,48 @@
+$NetBSD: patch-af,v 1.1 2006/02/04 22:12:23 markd Exp $
+
+--- addons/opvp/gdevopvp.c.orig 2005-09-23 05:06:31.000000000 +1200
++++ addons/opvp/gdevopvp.c
+@@ -752,7 +752,7 @@ opvp_get_papertable_index(
+ paper = i;
+ match = true;
+ break;
+- } else if ((f = fabsf(height - paper_h)) < TOLERANCE) {
++ } else if ((f = fabs(height - paper_h)) < TOLERANCE) {
+ if (f < h_delta) {
+ h_delta = f;
+ candidate = i;
+@@ -765,14 +765,14 @@ opvp_get_papertable_index(
+ } else if (prev != paper_w) {
+ prev = paper_w;
+ if (paper_w < width) {
+- if ((f = fabsf(width - paper_w)) < TOLERANCE) {
++ if ((f = fabs(width - paper_w)) < TOLERANCE) {
+ if (f < sw_delta) {
+ sw_delta = f;
+ smaller = i;
+ }
+ }
+ } else {
+- if ((f = fabsf(width - paper_w)) < TOLERANCE) {
++ if ((f = fabs(width - paper_w)) < TOLERANCE) {
+ if (f < lw_delta) {
+ lw_delta = f;
+ larger = i;
+@@ -791,7 +791,7 @@ opvp_get_papertable_index(
+ sh_delta = 0;
+ s_candi = i;
+ break;
+- } else if ((f = fabsf(height - paper_h))
++ } else if ((f = fabs(height - paper_h))
+ < TOLERANCE) {
+ if (f < sh_delta) {
+ sh_delta = f;
+@@ -808,7 +808,7 @@ opvp_get_papertable_index(
+ lh_delta = 0;
+ l_candi = i;
+ break;
+- } else if ((f = fabsf(height - paper_h))
++ } else if ((f = fabs(height - paper_h))
+ < TOLERANCE) {
+ if (f < lh_delta) {
+ lh_delta = f;