Weird SDL color(map) bug?

Hi,

It seems SDL windows have a strange colormap bug with an X server in
16-bit mode. When the window gets focus, its colors become slightly
brighter and more red than when it has no focus. As if a colormap
gets installed with slightly higher red values.

This is clearly visible with test/graywin (only in 16-bit mode).
I’ve also seen this with a few of my own apps which display 8 or
16-bit surfaces.

It’s kind of weird :-).

  • Reinoud

Yeah, Ive noticed that too. But it doesnt seem to effect stuff badly enough to
be a problem. It looks like its adding exactly 1 more red (out of 32) to the
image. Maybe a rounding error?On 07-Mar-2003, Reinoud wrote:

It seems SDL windows have a strange colormap bug with an X server in
16-bit mode. When the window gets focus, its colors become slightly
brighter and more red than when it has no focus. As if a colormap
gets installed with slightly higher red values.

This is clearly visible with test/graywin (only in 16-bit mode).
I’ve also seen this with a few of my own apps which display 8 or
16-bit surfaces.


Patrick “Diablo-D3” McFarland || unknown at panax.com
"Computer games don’t affect kids; I mean if Pac-Man affected us as kids, we’d
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." – Kristian Wilson, Nintendo, Inc, 1989

Hi,

It seems SDL windows have a strange colormap bug with an X server in
16-bit mode. When the window gets focus, its colors become slightly
brighter and more red than when it has no focus. As if a colormap
gets installed with slightly higher red values.

This is clearly visible with test/graywin (only in 16-bit mode).
I’ve also seen this with a few of my own apps which display 8 or
16-bit surfaces.

It’s kind of weird :-).

Hello,

has this issue been addressed? It kind of bugs me, especially when in
windowed mode …

latimeriusOn Fri, Mar 07, 2003 at 10:38:45PM +0100, Reinoud wrote:

It seems SDL windows have a strange colormap bug with an X server in
16-bit mode. When the window gets focus, its colors become slightly
brighter and more red than when it has no focus. As if a colormap
gets installed with slightly higher red values.

This is clearly visible with test/graywin (only in 16-bit mode).

Are you still seeing this? If so, can you report it in SDL bugzilla,
and include information about what X server you’re running and what
video hardware you have?

http://bugzilla.libsdl.org/

Thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment