diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2016-06-17 23:28:04 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-06-17 23:28:04 +0000 |
commit | 1a8a092d9fefcbd7f960c82c59802c61807867a6 (patch) | |
tree | 48e47bf661e0e5d6ed9c060e8aea683b30d4540f /print/ghostscript7-x11/files/patch-src_zmedia2.c | |
parent | - Update to 1.7.1 (diff) |
Rename all files containing a : in their filename.
While there, run make makepatch on affected ports, and rename patches
accordingly.
Sponsored by: Absolight
Notes
Notes:
svn path=/head/; revision=417041
Diffstat (limited to 'print/ghostscript7-x11/files/patch-src_zmedia2.c')
-rw-r--r-- | print/ghostscript7-x11/files/patch-src_zmedia2.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/print/ghostscript7-x11/files/patch-src_zmedia2.c b/print/ghostscript7-x11/files/patch-src_zmedia2.c new file mode 100644 index 000000000000..73e050c2aeaa --- /dev/null +++ b/print/ghostscript7-x11/files/patch-src_zmedia2.c @@ -0,0 +1,25 @@ +--- src/zmedia2.c.orig 2003-01-17 00:49:06 UTC ++++ src/zmedia2.c +@@ -429,11 +429,17 @@ make_adjustment_matrix(const gs_point * + + rx = ry, ry = temp; + } +- /* Adjust the medium size if flexible. */ +- if (medium->p.x < MIN_MEDIA_SIZE && mx > rx) +- mx = rx; +- if (medium->p.y < MIN_MEDIA_SIZE && my > ry) +- my = ry; ++ /* If 'medium' is flexible, adjust 'mx' and 'my' towards 'rx' and 'ry', ++ respectively. Note that 'mx' and 'my' have just acquired the largest ++ permissible value, medium->q. */ ++ if (medium->p.x < mx) /* non-empty width range */ ++ if (rx < medium->p.x) mx = medium->p.x; /* minimum */ ++ else if (mx > rx) mx = rx; /* fits */ ++ /* else use medium->q.x, i.e., the maximum */ ++ if (medium->p.y < my) /* non-empty height range */ ++ if (ry < medium->p.y) my = medium->p.y; /* minimum */ ++ else if (my > ry) my = ry; /* fits */ ++ /* else use medium->q.y, i.e., the maximum */ + + /* Translate to align the centers. */ + gs_make_translation(mx / 2, my / 2, pmat); |