[SDL] SDL_SetGamma problem
Benjamin Niemann
pink at odahoda.de
Tue Jun 12 12:05:19 PDT 2001
On Tuesday 12 June 2001 10:40, you wrote:
> >I just tried to add fading to my game using SDL_SetGamma(). As it turned
> > out, this feature seems not to be supported by my gfx driver (Xfree 4.0.x
> > on a Trident Blade3D running at 16bpp).
>
> under X11, gamma is supported on DirectColor and PseudoColor visuals.
> run xdpyinfo and see what DirectColor visuals you have
xdpyinfo says 'default visual id: 0x23' which is TrueColor.
Actually I don't know much about X11 and the theory behind these 'visuals'.
xdpyinfo lists DirectColor visuals with id 0x25 and 0x26.
Is there a way to select the default visual (XF86Config??) and is this
adviseable?
Or is the visual class selected for each window. Then it's up to SDL's
initcode to make the best choice.
But the _important_ point is, that SDL_SetGamma() reports success although no
visible effect happens. My game will handle both cases anyway (w/ + w/o gamma
support). It just has to know about the (non-)existence of gamma support.
--
Benjamin Niemann (P!\K)
pink at odahoda.de
http://www.odahoda.de
More information about the SDL
mailing list