MCPcopy Create free account
hub / github.com/diasurgical/devilution / SDLC_SetColorKey

Function SDLC_SetColorKey

SourceS/sdl_compat.h:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38inline 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.
48inline int SDLC_SetSurfaceColors(SDL_Surface *surface, SDL_Color *colors, int firstcolor, int ncolors)

Callers 3

LoadMaskedArtFunction · 0.85
PrepareLineFunction · 0.85
RenderUTF8_Solid_WrappedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected