Path: utzoo!attcan!uunet!husc6!bloom-beacon!think!ames!sgi!daisy!rob From: rob@daisy.UUCP (Rob Posadas) Newsgroups: comp.windows.x Subject: Re: Cursor Management Message-ID: <2120@daisy.UUCP> Date: 12 Dec 88 19:05:08 GMT References: <18724@shemp.CS.UCLA.EDU> Reply-To: rob@daisy.UUCP (Rob Posadas) Organization: Daisy Systems Corp., Mountain View, Ca. Lines: 29 This is what the Sun sample server does when you try to set the cursor color: Takes the RGB values you supplied and compares them to entries in the default colormap. If it finds a match, it uses the entry value as the pixel value for the cursor, otherwise it will allocate a new colormap entry in the default colormap for this RGB value and use the new entry number as the pixel value. The problem is that if you have not installed the default colormap, it is not the one the system is using. This means that the pixel value it is using to determine the cursor color is in no way related to the RGB values you handed it. Example: You hand it the RGB value for Brown. Typically the default colormap has only white and black in it, maybe a couple others. So, since there is no Brown, it will allocate one in the next available spot, cell number 5. So the cursor will be drawn with pixel value 5. The problem is that your installed colormap is in no way related to the default colormap. Pixel value 5 could be anything. Anyway, as David Rosenthal mentioned earlier the Sun sample server does not do cursor colors correctly. -- Rob Posadas -- Daisy Systems Corp 700 E. Middlefield Rd. Mt. View, CA 94039-7006 ucbvax!imagen!atari!daisy!rob