summaryrefslogtreecommitdiff
path: root/Source/3rdParty/SDL2/include/SDL_surface.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-01-31 18:38:35 +0800
committerchai <chaifix@163.com>2019-01-31 18:38:35 +0800
commit2ec55fd974a63b705a4777c256d2222c874fa043 (patch)
tree48f1fea59ee9fc713a28a9aac3f05b98dc5ae66f /Source/3rdParty/SDL2/include/SDL_surface.h
parentc581dfbf1e849f393861d15e82aa6446c0c1c310 (diff)
*SDL project
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