source/src/video/SDL_surface.c
@@ -37,7 +37,7 @@ /* * Calculate the pad-aligned scanline width of a surface */ int static int SDL_CalculatePitch(Uint32 format, int width) { int pitch; @@ -292,6 +292,20 @@ return 0; } SDL_bool SDL_HasColorKey(SDL_Surface * surface) { if (!surface) { return SDL_FALSE; } if (!(surface->map->info.flags & SDL_COPY_COLORKEY)) { return SDL_FALSE; } return SDL_TRUE; } int SDL_GetColorKey(SDL_Surface * surface, Uint32 * key) {