# HG changeset patch # User Eli Gottlieb # Date 1274761421 14400 # Node ID 4435e014eacc32ce3e105094dd6153f99027cf82 # Parent dc3fd9b7fcbc0bde4f0d468e6a8e2ff2bc022b7c Changed API for shaped windows to make it much, much simpler. A shaped window's shape mask is now accessed as a render target, which means we can get at it with blit and draw functions, as well as (most likely) OpenGL. diff -r dc3fd9b7fcbc -r 4435e014eacc include/SDL_shape.h --- a/include/SDL_shape.h Sun May 23 01:27:09 2010 -0400 +++ b/include/SDL_shape.h Tue May 25 00:23:41 2010 -0400 @@ -43,13 +43,9 @@ * * \sa SDL_DestroyWindow() */ -extern DECLSPEC SDL_Shaped_Window * SDLCALL SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags); +extern DECLSPEC SDL_Window * SDLCALL SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags); -extern DECLSPEC SDL_Surface * SDLCALL SDL_LockWindowShape(const SDL_Shaped_Window *window); -extern DECLSPEC void SDLCALL SDL_UnlockWindowShape(const SDL_Shaped_Window *window); -extern DECLSPEC int SDLCALL SDL_PresentWindowShape(const SDL_Shaped_Window *window); - -extern DECLSPEC SDL_Window * SDLCALL SDL_LockShapedWindow(const SDL_Shaped_Window *window); -extern DECLSPEC void SDLCALL SDL_UnlockShapedWindow(const SDL_Shaped_Window *window); +extern DECLSPE SDL_bool SDLCALL SDL_WindowIsShaped(const SDL_Window *window); +extern DECLSPEC int SDLCALL SDL_SelectShapeRenderer(const SDL_Window *window); extern DECLSPEC void SDLCALL SDL_DestroyShapedWindow(const SDL_Shaped_Window *window);