21 #include "../../SDL_internal.h" 23 #if SDL_VIDEO_DRIVER_X11 29 #include "../SDL_shape_internals.h" 37 #if SDL_VIDEO_DRIVER_X11_XSHAPE 38 if (SDL_X11_HAVE_XSHAPE) {
60 unsigned int bitmapsize = window->
w / 8;
65 bitmapsize *= window->
h;
72 return SDL_SetError(
"Could not allocate memory for shaped-window bitmap.");
93 #if SDL_VIDEO_DRIVER_X11_XSHAPE 106 X11_XShapeCombineMask(windowdata->
videodata->
display,windowdata->
xwindow, ShapeBounding, 0, 0,shapemask, ShapeSet);
int X11_ResizeWindowShape(SDL_Window *window)
struct wl_display * display
int X11_SetWindowShape(SDL_WindowShaper *shaper, SDL_Surface *shape, SDL_WindowShapeMode *shapeMode)
A collection of pixels used in software blitting.
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
#define SDL_SHAPEMODEALPHA(mode)
SDL_WindowShaper * shaper
struct SDL_VideoData * videodata
The default mode, a binarized alpha cutoff of 1.
SDL_WindowShapeParams parameters
Window-shape parameters.
SDL_WindowShaper * X11_CreateShaper(SDL_Window *window)
#define SDL_assert(condition)
EGLSurface EGLNativeWindowType * window
The type used to identify a window.
Uint8 binarizationCutoff
A cutoff alpha value for binarization of the window shape's alpha channel.
A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents...
WindowShapeMode mode
The mode of these window-shape parameters.
#define SDL_SetWindowPosition
void SDL_CalculateShapeBitmap(SDL_WindowShapeMode mode, SDL_Surface *shape, Uint8 *bitmap, Uint8 ppb)