[SDL] (no subject)

Mark Collins m.collins at codeplay.com
Thu Aug 16 06:36:00 PDT 2001

"Brock" <hawkeyemi at yahoo.com> wrote in message
news:mailman.997894565.14622.sdl at libsdl.org...
> Hello all,
>    I'm new to game programming, and a friend and I are attmpting the use
of SDL
> for our game.  I'm currently trying to run a basic framework from a book,
> I'm getting this error:
>   Gamma correction not supported
> <snip>

I'm guessing you've got something like:

// Start code
int val = SDL_Init(SDL_INIT_VIDEO);

if (!val) {
    printf(stderr, "error: %s", SDL_GetError());
// End code

Somewhere in your program?

If so, the problem is with the "if (!val)", it should be "if (val)"
(SDL_Init() returns a 0 on success).

(I had the same problem)

Mark 'Nurgle' Collins
Developer Support - Codeplay Ltd.

More information about the SDL mailing list