| 36 | } |
| 37 | |
| 38 | inline int SDLC_SetColorKey(SDL_Surface *surface, Uint32 key) |
| 39 | { |
| 40 | #ifdef USE_SDL1 |
| 41 | return SDL_SetColorKey(surface, SDL_SRCCOLORKEY, key); |
| 42 | #else |
| 43 | return SDL_SetColorKey(surface, SDL_TRUE, key); |
| 44 | #endif |
| 45 | } |
| 46 | |
| 47 | // Copies the colors into the surface's palette. |
| 48 | inline int SDLC_SetSurfaceColors(SDL_Surface *surface, SDL_Color *colors, int firstcolor, int ncolors) |
no outgoing calls
no test coverage detected