summaryrefslogtreecommitdiff
path: root/Source/3rdParty/SDL2/include/SDL_surface.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/3rdParty/SDL2/include/SDL_surface.h')
-rw-r--r--Source/3rdParty/SDL2/include/SDL_surface.h7
1 files changed, 7 insertions, 0 deletions
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
@@ -249,6 +249,13 @@ 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.
*
* \param surface The surface to update