Path: utzoo!utgpu!news-server.csri.toronto.edu!smoke.cs.toronto.edu!neat.cs.toronto.edu!moraes Newsgroups: comp.windows.x From: moraes@cs.toronto.edu (Mark Moraes) Subject: Re: How to display a postscript file in X windows? Message-ID: <90Oct12.045249edt.594@smoke.cs.toronto.edu> Organization: Department of Computer Science, University of Toronto References: <9010051327.AA18804@islanders.> <11696@ganymede.inmos.co.uk> <90Oct7.162046edt.665@smoke.cs.toronto.edu> <74@screamer.csee.usf.edu> <106945@convex.convex.com> Date: 12 Oct 90 08:53:33 GMT Lines: 70 datri@convex.com (Anthony A. Datri) writes: >>|>[Perhaps the FAQ should be updated to mention version 2.0, >>|> and give it precedence over xps -- gs2.0 is MUCH better] >Yeah, and Ultrix 4.0 is "MUCH better" than Sun's 1.1 release. Be fair here At present, the FAQ mentions xps. All I suggested was that it should mention gs2.0 and give it precedence over xps. Which is fair. [My comments on Ultrix I will leave out of this newsgroup -- this is a family forum... :-] The FAQ could mention ralpage as well. I think gs2.0 performs better than ralpage on all the PostScript I threw at it. Then again, I haven't stayed current on ralpage fixes. People running gs2.0 on servers that support backing store (eg. MIT R4 Xsun) may find it far faster if they apply the following fix -- it stops it from drawing everything into a backing pixmap as well as the screen and instead turns on backing store. (Statutory warning to ward off the X Division of the Softies: the server may choose to not honour the backing store request and all those carefully drawn bits will vanish.) Perhaps use_backing should be an option... Mark. *** /tmp/,RCSt1a08343 Fri Oct 12 04:40:50 1990 --- gdevx.c Fri Oct 12 03:53:13 1990 *************** *** 48,54 **** /* Define whether to use a backing pixmap to handle expose events. */ /* Note that this is a variable rather than a #define. */ /* Note also that it is consulted each time we open an X device. */ ! private int use_backing = 1; /* Define the maximum size of the temporary pixmap for copy_mono */ /* that we are willing to leave lying around in the server */ --- 48,54 ---- /* Define whether to use a backing pixmap to handle expose events. */ /* Note that this is a variable rather than a #define. */ /* Note also that it is consulted each time we open an X device. */ ! private int use_backing = 0; /* Define the maximum size of the temporary pixmap for copy_mono */ /* that we are willing to leave lying around in the server */ *************** *** 390,395 **** --- 388,394 ---- xswa.event_mask = ExposureMask; xswa.background_pixel = xdev->black; xswa.border_pixel = border_color; + xswa.backing_store = Always; xdev->win = XCreateWindow(xdev->dpy, RootWindowOfScreen(scr), sizehints.x, sizehints.y, /* upper left */ sizehints.width, sizehints.height, *************** *** 397,403 **** DefaultDepthOfScreen(scr), InputOutput, /* class */ xdev->vis, /* visual */ ! CWEventMask | CWBackPixel | CWBorderPixel, &xswa); if ( use_backing ) xdev->bpixmap = --- 396,403 ---- DefaultDepthOfScreen(scr), InputOutput, /* class */ xdev->vis, /* visual */ ! CWBackingStore | CWEventMask | ! CWBackPixel | CWBorderPixel, &xswa); if ( use_backing ) xdev->bpixmap =