Mercurial > sdl-ios-xcode
diff test/testpalette.c @ 1516:4d241ea8a1cd
Updated MacOS Classic build
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 13 Mar 2006 05:36:42 +0000 |
parents | aff0170f9f1b |
children | 14717b52abc0 |
line wrap: on
line diff
--- a/test/testpalette.c Mon Mar 13 04:35:59 2006 +0000 +++ b/test/testpalette.c Mon Mar 13 05:36:42 2006 +0000 @@ -167,7 +167,7 @@ } /* Ask explicitly for 8bpp and a hardware palette */ - if(!(screen = SDL_SetVideoMode(SCRW, SCRH, 8, vidflags | SDL_HWPALETTE))) { + if((screen = SDL_SetVideoMode(SCRW, SCRH, 8, vidflags | SDL_HWPALETTE)) == NULL) { fprintf(stderr, "error setting %dx%d 8bpp indexed mode: %s\n", SCRW, SCRH, SDL_GetError()); quit(1); @@ -175,7 +175,7 @@ if (vidflags & SDL_FULLSCREEN) SDL_ShowCursor (SDL_FALSE); - if(!(boat[0] = SDL_LoadBMP("sail.bmp"))) + if((boat[0] = SDL_LoadBMP("sail.bmp")) == NULL) sdlerr("loading sail.bmp"); /* We've chosen magenta (#ff00ff) as colour key for the boat */ SDL_SetColorKey(boat[0], SDL_SRCCOLORKEY | SDL_RLEACCEL,