Fix color keys.
This commit is contained in:
parent
593ea01386
commit
b285643a82
|
@ -135,7 +135,7 @@ void initGraphics()
|
|||
|
||||
SDL_Surface *setTransparent(SDL_Surface *sprite)
|
||||
{
|
||||
SDL_SetColorKey(sprite, (SDL_TRUE|SDL_RLEACCEL), SDL_MapRGB(sprite->format, 0, 0, 0));
|
||||
SDL_SetColorKey(sprite, SDL_TRUE, SDL_MapRGB(sprite->format, 0, 0, 0));
|
||||
return sprite;
|
||||
}
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ void loadGameGraphics()
|
|||
}
|
||||
}
|
||||
|
||||
SDL_SetColorKey(shipShape[i], (SDL_TRUE|SDL_RLEACCEL), SDL_MapRGB(shipShape[i]->format, 0, 0, 0));
|
||||
SDL_SetColorKey(shipShape[i], SDL_TRUE, SDL_MapRGB(shipShape[i]->format, 0, 0, 0));
|
||||
}
|
||||
|
||||
strcpy(string, "data/resources_all.dat");
|
||||
|
|
Loading…
Reference in New Issue