summaryrefslogtreecommitdiff
path: root/print/ghostscript7/files/patch-src:zmedia2.c
diff options
context:
space:
mode:
Diffstat (limited to 'print/ghostscript7/files/patch-src:zmedia2.c')
-rw-r--r--print/ghostscript7/files/patch-src:zmedia2.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/print/ghostscript7/files/patch-src:zmedia2.c b/print/ghostscript7/files/patch-src:zmedia2.c
index 6e19c2ddfd8e..9033a4388085 100644
--- a/print/ghostscript7/files/patch-src:zmedia2.c
+++ b/print/ghostscript7/files/patch-src:zmedia2.c
@@ -1,6 +1,6 @@
---- src/zmedia2.c.orig Tue Jun 5 15:39:08 2001
-+++ src/zmedia2.c Wed Jun 20 04:18:27 2001
-@@ -430,11 +430,17 @@
+--- src/zmedia2.c.orig Fri Apr 27 02:57:41 2001
++++ src/zmedia2.c Fri Nov 2 04:08:16 2001
+@@ -429,11 +429,17 @@
rx = ry, ry = temp;
}
@@ -10,16 +10,16 @@
- 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 */
++ 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);