On Wednesday 27 October 2004 2:07 pm, SherLok Merfy wrote:
<a href="http://www.starlink.rl.ac.uk/star/docs/sun239.htx/node19.html"
LUTTWEAK - Tweaks a colour table of an image-display device </a>
Unless you can rewrite a jeneralized subroutine like the above for your own purposes or use it from a library.
Yes, that would be the best approach. However, the code is essentially already in place. It just doesn't work. The problem could be any one of: 1. The detected visual class is incorrect for changing the palette because the palette is read-only in that visual class. It should be possible to change the visual class to one that allows read-write palettes 2. The colors may be allocated read-only. This is different from #1 because the colors could be allocated read-write or read-only with a visual class that allows read-write. 3. Forcing an expose event that tells the xwindow server to redraw (repaint not recalculate) the window may not be sent to the server correctly and may not be handled correctly by the Xfractint code (in unixscr.c). I've obviously missed something. Any help you can provide would be appreciated. Jonathan