|
From: | Fred Kiefer |
Subject: | Re: Fast drawMechanism for 8-bit PseudoColor |
Date: | Fri, 20 Aug 2004 13:23:00 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114 |
Paul Secchia wrote:
2004-08-11 14:25:40.132 Converter[1011] WARNING - XGServer is unable to use a fast algorithm for writing to the display on this host - perhaps you'd like to adjust the code to work ... and submit a patch. So here's a patch. Three files need to be patched relative to gnustep-back-0.9.0: Headers/x11/XGServer.h Source/x11/XGServer.m Source/xlib/XGBitmap.m A patchfile is attached. Also, a utility to install StandardColormaps RGB_DEFAULT_MAP and RGB_BEST_MAP is included. RGB_BEST_MAP is needed to enable the drawMechanism. 1 source file stdcmaps.c and a GNU style makefile comprise the utility. The utility should be run before launching any GNUstep application, preferably in the session startup script. The source file and the makefile are attached.
This surely is not my area of expertice, but the patch looks fine. I am wondering what the separate utility is used for. Wouldn't it be better to put that code into the [XGServer initForDisplay:screen:] method and execute it, when the test there fails? The problem is of course that than back would need to link with all the Xmu stuff, so we would need configuration stuff to detect, if this is present.
Actuall Xmu looks pretty usefull for other things as well. I will have a deeper look at the functions there.
[Prev in Thread] | Current Thread | [Next in Thread] |