21 #include "../../SDL_internal.h" 23 #if SDL_VIDEO_DRIVER_DIRECTFB 30 #include "../SDL_shape_internals.h" 61 if (window->
x != -1000)
88 DFBSurfaceDescription dsc;
94 dsc.flags = DSDESC_WIDTH | DSDESC_HEIGHT | DSDESC_PIXELFORMAT | DSDESC_CAPS;
96 dsc.height = shape->
h;
97 dsc.caps = DSCAPS_PREMULTIPLIED;
98 dsc.pixelformat = DSPF_ARGB;
112 for (w = 0; w < shaper->
window->
w; w++) {
114 pixels[
w] = 0xFFFFFFFF;
120 pixels += (pitch >> 2);
GLsizei GLfixed GLfixed GLfixed GLfixed const GLubyte * bitmap
SDL_Window * DirectFB_CreateShapedWindow(const char *title, unsigned int x, unsigned int y, unsigned int w, unsigned int h, Uint32 flags)
SDL_WindowShaper * DirectFB_CreateShaper(SDL_Window *window)
uint32_t Uint32
An unsigned 32-bit integer type.
A collection of pixels used in software blitting.
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
#define SDL_SHAPEMODEALPHA(mode)
IDirectFBSurface * surface
GLint GLint GLint GLint GLint x
#define SDL_DFB_RELEASE(x)
#define SDL_DFB_DEVICEDATA(dev)
SDL_WindowShaper * shaper
uint8_t Uint8
An unsigned 8-bit integer type.
The default mode, a binarized alpha cutoff of 1.
SDL_WindowShapeParams parameters
Window-shape parameters.
int32_t Sint32
A signed 32-bit integer type.
int DirectFB_SetWindowShape(SDL_WindowShaper *shaper, SDL_Surface *shape, SDL_WindowShapeMode *shapeMode)
#define SDL_assert(condition)
#define SDL_DFB_ALLOC_CLEAR(r, s)
#define SDL_DFB_CHECKERR(x...)
int DirectFB_ResizeWindowShape(SDL_Window *window)
GLint GLint GLint GLint GLint GLint y
SDL_VideoDisplay * SDL_GetDisplayForWindow(SDL_Window *window)
void DirectFB_WM_RedrawLayout(_THIS, SDL_Window *window)
#define SDL_DFB_CHECK(x...)
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)