21 #include "../../SDL_internal.h" 23 #if SDL_VIDEO_DRIVER_X11 29 #include "../SDL_shape_internals.h" 42 #if SDL_VIDEO_DRIVER_X11_XSHAPE 43 if (SDL_X11_HAVE_XSHAPE) {
65 unsigned int bitmapsize = window->
w / 8;
70 bitmapsize *= window->
h;
77 return SDL_SetError(
"Could not allocate memory for shaped-window bitmap.");
98 #if SDL_VIDEO_DRIVER_X11_XSHAPE 111 X11_XShapeCombineMask(windowdata->
videodata->
display,windowdata->
xwindow, ShapeBounding, 0, 0,shapemask, ShapeSet);
int X11_ResizeWindowShape(SDL_Window *window)
uint32_t Uint32
An unsigned 32-bit integer type.
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)
GLint GLint GLint GLint GLint x
SDL_Window * X11_CreateShapedWindow(const char *title, unsigned int x, unsigned int y, unsigned int w, unsigned int h, Uint32 flags)
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)
GLint GLint GLint GLint GLint GLint y
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...
GLubyte GLubyte GLubyte GLubyte w
WindowShapeMode mode
The mode of these window-shape parameters.
#define SDL_SetWindowPosition
GLfloat GLfloat GLfloat GLfloat h
void SDL_CalculateShapeBitmap(SDL_WindowShapeMode mode, SDL_Surface *shape, Uint8 *bitmap, Uint8 ppb)