nanogui: GrSetGCForeground with 16 bit colors


Previous by date: 8 Jun 2002 02:00:24 -0000 Re: Keyboard driver, Greg Haerr
Next by date: 8 Jun 2002 02:00:24 -0000 Re: GrSetGCForeground with 16 bit colors, Greg Haerr
Previous in thread:
Next in thread: 8 Jun 2002 02:00:24 -0000 Re: GrSetGCForeground with 16 bit colors, Greg Haerr

Subject: GrSetGCForeground with 16 bit colors
From: Susan Justice ####@####.####
Date: 8 Jun 2002 02:00:24 -0000
Message-Id: <001b01c20e8e$622bfcb0$013ac33f@BIGBOX>

Hi,

I have an application which has 16 bit color values.  When I put the value in the lowest 16 bits of the MWCOLORVAL and call GrSetGCForeground, I lose part of the color.  If I shift the 16 bit value left by 8 bits, the colors come close to what I would expect.  Doing this seems to work, but I don't know why it should.  Can anyone help?

I am using the XWindows driver with XWindows set to 16 bit, underlying hardware is 16 bit.

Thanks!  

Previous by date: 8 Jun 2002 02:00:24 -0000 Re: Keyboard driver, Greg Haerr
Next by date: 8 Jun 2002 02:00:24 -0000 Re: GrSetGCForeground with 16 bit colors, Greg Haerr
Previous in thread:
Next in thread: 8 Jun 2002 02:00:24 -0000 Re: GrSetGCForeground with 16 bit colors, Greg Haerr


Powered by ezmlm-browse 0.20.