[gs-cvs] rev 8346 - trunk/gs/src
marcos at ghostscript.com
marcos at ghostscript.com
Fri Nov 2 12:09:03 PDT 2007
Author: marcos
Date: 2007-11-02 12:09:03 -0700 (Fri, 02 Nov 2007)
New Revision: 8346
Modified:
trunk/gs/src/gdevx.c
Log:
Fix for Bug 689316.
On some systems XInitImage() appears to have
problems with images that are one pixel in height, so
if XInitImage() returns an error call XPutImage() instead.
Modified: trunk/gs/src/gdevx.c
===================================================================
--- trunk/gs/src/gdevx.c 2007-11-02 18:16:45 UTC (rev 8345)
+++ trunk/gs/src/gdevx.c 2007-11-02 19:09:03 UTC (rev 8346)
@@ -239,9 +239,7 @@
#define put_image(dpy,win,gc,im,sx,sy,x,y,w,h)\
BEGIN\
- if ( xdev->useXPutImage ) {\
- if (XInitImage(im) == 0)\
- return_error(gs_error_unknownerror);\
+ if ( xdev->useXPutImage && !(XInitImage(im) == 0) ) {\
XPutImage(dpy,win,gc,im,sx,sy,x,y,w,h);\
} else {\
int code_ = alt_put_image(dev,dpy,win,gc,im,sx,sy,x,y,w,h);\
More information about the gs-cvs
mailing list