From 2ec55fd974a63b705a4777c256d2222c874fa043 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 31 Jan 2019 18:38:35 +0800 Subject: *SDL project --- Source/3rdParty/SDL2/include/SDL_surface.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Source/3rdParty/SDL2/include/SDL_surface.h') diff --git a/Source/3rdParty/SDL2/include/SDL_surface.h b/Source/3rdParty/SDL2/include/SDL_surface.h index 45e5366..730d49f 100644 --- a/Source/3rdParty/SDL2/include/SDL_surface.h +++ b/Source/3rdParty/SDL2/include/SDL_surface.h @@ -248,6 +248,13 @@ extern DECLSPEC int SDLCALL SDL_SetSurfaceRLE(SDL_Surface * surface, extern DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface * surface, int flag, Uint32 key); +/** + * \brief Returns whether the surface has a color key + * + * \return SDL_TRUE if the surface has a color key, or SDL_FALSE if the surface is NULL or has no color key + */ +extern DECLSPEC SDL_bool SDLCALL SDL_HasColorKey(SDL_Surface * surface); + /** * \brief Gets the color key (transparent pixel) in a blittable surface. * -- cgit v1.1-26-g67d0