freebsd-ports/print/ghostscript-gnu-cjk/files/patch-src:gdevxini.c
Yoshio MITA 979ed31b76 Add ghostscript-gnu-cjk 6.52,
gNU Postscript interpreter CJK fonts
adding port.

This is a GNU version of ghostscript with features below:

1. CJK internationalization ready.
2. Depends on print/ghostscript-gnu and replace only necessary files.
3. -DA4 default as is standard in CJK countries.
4. Includes many additional printer drivers sold in japan.

PR:		ports/33116
Submitted by:	Tomokatsu SAITO <saito@a2z.co.jp>
2002-01-18 15:23:54 +00:00

14 lines
551 B
C

--- src/gdevxini.c.orig Tue Jun 5 15:38:57 2001
+++ src/gdevxini.c Wed Jun 20 04:17:15 2001
@@ -655,8 +655,10 @@
}
x_set_buffer(xdev);
/* Clear the destination pixmap to avoid initializing with garbage. */
- xdev->dest = (xdev->bpixmap != (Pixmap) 0 ?
+ if (xdev->dest == (Pixmap) 0) {
+ xdev->dest = (xdev->bpixmap != (Pixmap) 0 ?
xdev->bpixmap : (Pixmap) xdev->win);
+ }
if (xdev->dest != (Pixmap) 0) {
XSetForeground(xdev->dpy, xdev->gc, xdev->background);
XFillRectangle(xdev->dpy, xdev->dest, xdev->gc,