[Commits] SDL: Removed unused internal window shape functions.

libsdl.org revision control commits-owner at libsdl.org
Thu May 25 14:10:29 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/938d2ced5244
changeset: 11029:938d2ced5244
user:      Philipp Wiesemann <philipp.wiesemann at arcor.de>
date:      Thu May 25 23:00:43 2017 +0200
description:
Removed unused internal window shape functions.

diffstat:

 src/video/directfb/SDL_DirectFB_shape.c |  5 -----
 src/video/directfb/SDL_DirectFB_shape.h |  1 -
 src/video/x11/SDL_x11shape.c            |  6 ------
 src/video/x11/SDL_x11shape.h            |  1 -
 4 files changed, 0 insertions(+), 13 deletions(-)

diffs (57 lines):

diff -r 25cd7fe50180 -r 938d2ced5244 src/video/directfb/SDL_DirectFB_shape.c
--- a/src/video/directfb/SDL_DirectFB_shape.c	Wed May 24 19:56:59 2017 -0400
+++ b/src/video/directfb/SDL_DirectFB_shape.c	Thu May 25 23:00:43 2017 +0200
@@ -29,11 +29,6 @@
 
 #include "../SDL_shape_internals.h"
 
-SDL_Window*
-DirectFB_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags) {
-    return SDL_CreateWindow(title,x,y,w,h,flags /* | SDL_DFB_WINDOW_SHAPED */);
-}
-
 SDL_WindowShaper*
 DirectFB_CreateShaper(SDL_Window* window) {
     SDL_WindowShaper* result = NULL;
diff -r 25cd7fe50180 -r 938d2ced5244 src/video/directfb/SDL_DirectFB_shape.h
--- a/src/video/directfb/SDL_DirectFB_shape.h	Wed May 24 19:56:59 2017 -0400
+++ b/src/video/directfb/SDL_DirectFB_shape.h	Thu May 25 23:00:43 2017 +0200
@@ -31,7 +31,6 @@
     IDirectFBSurface *surface;
 } SDL_ShapeData;
 
-extern SDL_Window* DirectFB_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags);
 extern SDL_WindowShaper* DirectFB_CreateShaper(SDL_Window* window);
 extern int DirectFB_ResizeWindowShape(SDL_Window* window);
 extern int DirectFB_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode);
diff -r 25cd7fe50180 -r 938d2ced5244 src/video/x11/SDL_x11shape.c
--- a/src/video/x11/SDL_x11shape.c	Wed May 24 19:56:59 2017 -0400
+++ b/src/video/x11/SDL_x11shape.c	Thu May 25 23:00:43 2017 +0200
@@ -28,11 +28,6 @@
 #include "SDL_x11window.h"
 #include "../SDL_shape_internals.h"
 
-SDL_Window*
-X11_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags) {
-    return SDL_CreateWindow(title,x,y,w,h,flags);
-}
-
 SDL_WindowShaper*
 X11_CreateShaper(SDL_Window* window) {
     SDL_WindowShaper* result = NULL;
@@ -118,4 +113,3 @@
 }
 
 #endif /* SDL_VIDEO_DRIVER_X11 */
-
diff -r 25cd7fe50180 -r 938d2ced5244 src/video/x11/SDL_x11shape.h
--- a/src/video/x11/SDL_x11shape.h	Wed May 24 19:56:59 2017 -0400
+++ b/src/video/x11/SDL_x11shape.h	Thu May 25 23:00:43 2017 +0200
@@ -32,7 +32,6 @@
     Uint32 bitmapsize;
 } SDL_ShapeData;
 
-extern SDL_Window* X11_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags);
 extern SDL_WindowShaper* X11_CreateShaper(SDL_Window* window);
 extern int X11_ResizeWindowShape(SDL_Window* window);
 extern int X11_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode);


More information about the commits mailing list