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);
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)
int32_t Sint32
A signed 32-bit integer type.
GLfloat GLfloat GLfloat GLfloat h
A collection of pixels used in software blitting.
#define SDL_SHAPEMODEALPHA(mode)
IDirectFBSurface * surface
#define SDL_DFB_RELEASE(x)
uint32_t Uint32
An unsigned 32-bit integer type.
#define SDL_DFB_DEVICEDATA(dev)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
SDL_WindowShaper * shaper
The default mode, a binarized alpha cutoff of 1.
DECLSPEC void *SDLCALL SDL_malloc(size_t size)
SDL_WindowShapeParams parameters
Window-shape parameters.
int DirectFB_SetWindowShape(SDL_WindowShaper *shaper, SDL_Surface *shape, SDL_WindowShapeMode *shapeMode)
#define SDL_assert(condition)
EGLSurface EGLint EGLint y
#define SDL_DFB_ALLOC_CLEAR(r, s)
#define SDL_DFB_CHECKERR(x...)
DECLSPEC SDL_Window *SDLCALL SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
Create a window with the specified position, dimensions, and flags.
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
int DirectFB_ResizeWindowShape(SDL_Window *window)
DECLSPEC void SDLCALL SDL_SetWindowPosition(SDL_Window *window, int x, int y)
Set the position of a window.
GLenum GLsizei GLsizei GLsizei GLsizei GLbitfield flags
SDL_VideoDisplay * SDL_GetDisplayForWindow(SDL_Window *window)
void DirectFB_WM_RedrawLayout(_THIS, SDL_Window *window)
#define SDL_DFB_CHECK(x...)
uint8_t Uint8
An unsigned 8-bit integer type.
Uint8 binarizationCutoff
a cutoff alpha value for binarization of the window shape's alpha channel.
GLint GLint GLint GLint GLint w
A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents...
GLsizei GLfixed GLfixed GLfixed GLfixed const GLubyte * bitmap
WindowShapeMode mode
The mode of these window-shape parameters.
void SDL_CalculateShapeBitmap(SDL_WindowShapeMode mode, SDL_Surface *shape, Uint8 *bitmap, Uint8 ppb)