jta@bilbo.locus (Jim Anderson) (04/07/89)
We have received a complaint regarding our X server that values returned by QueryColors do not match the values set via StoreColors. This is because we mask the values to only the significant bits when storing them in the colormap. Is there anything in the Protocol Spec that covers this?
rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (04/11/89)
I don't think there is any explicit wording in the protocol spec, but it was intended that servers be allowed to convert RGB values into their hardware range, and convert them back for QueryColors. So, what you are doing is OK, except that you (and we :-) should really be scaling values rather than masking/shifting. You notice this right away when you save away a color image and then try and redisplay it using a standard colormap. It's on our list of things to fix in the sample server.