Updated MacOS Classic build
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401520
This commit is contained in:
parent
34d826583e
commit
61549bf6a5
11 changed files with 33 additions and 24 deletions
|
@ -167,7 +167,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
/* 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 @@ int main(int argc, char **argv)
|
|||
|
||||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue