standard colormaps i m working on an x r application and have concerns regarding standard colormaps the x r documentation says usually a window manager creates these colormaps i wonder what window manager the writer had in mind neither twm or mwm seem to create standard colormaps of course one can use xstdcmap to create standard colormaps however xstdcmap doesn t seem to try very hard to avoid conflicts with the default colormap when i use standard colormaps created by xstdcmap the rest of my display goes black so it seems as if use of standard colormaps causes the very problem standard colormaps are intended to avoid perhaps if every application used standard colormaps things would be wonderful but not many applications seem to use standard colormaps finally the operation of the functions xmugetcolormapallocation xmustandardcolormap and xmucreatecolormap seem inconsistent with the section of the x r xlib documentation according to the section of the x r xlib documentation p for grayscale colormaps only the colormap red max red mult and base pixel members are defined the other members are ignored to compute a grayscale pixel value use the following expression gray red mult base pixel xffffffff xmugetcolormapallocation defined in mit lib xmu cmapalloc c is used by xmulookupstandardcolormap defined in mit lib xmu lookupcmap c to select red max green max and blue max values for the call to xmustandardcolormap when the rgb gray map property is specified xmugetcolormapallocation sets red max to of the total number of cells in the gray scale sets green max to of the total number and sets blue max ot of the total number referring to section one would expect xmugetcolormapallocation to set red max to the total number of cells in the gray scale when the rgb gray map property is specified xmustandardcolormap defined in mit lib xmu stdcmap c sets red mult green mult and blue mult all equal to referring to section one would expect green mult and blue mult to be ignored when red mult green mult and blue mult all equal xmucreatecolormap defined in mit lib xmu crcmap c constructs a gray map the sum of red max green max and blue max gives the maximum gray value referring to section on would expect red max to give the maximum gray value
