Commit bce186d5 authored by Sunny Sachanandani's avatar Sunny Sachanandani

Implement blending modes for textures. Fix off-screen pixmaps to be ARGB...

Implement blending modes for textures. Fix off-screen pixmaps to be ARGB rather than RGB to enable blending across frames. Clear the screen and off-screen pixmaps when the renderer is created.
parent 40daa46a
...@@ -49,7 +49,7 @@ get_visualinfo(Display * display, int screen, XVisualInfo * vinfo) ...@@ -49,7 +49,7 @@ get_visualinfo(Display * display, int screen, XVisualInfo * vinfo)
return 0; return 0;
} }
} }
#ifdef SDL_VIDEO_DRIVER_X11_XRENDER /*#ifdef SDL_VIDEO_DRIVER_X11_XRENDER
depth = 32; depth = 32;
long vinfo_mask; long vinfo_mask;
XVisualInfo vinfo_templ; XVisualInfo vinfo_templ;
...@@ -64,7 +64,7 @@ get_visualinfo(Display * display, int screen, XVisualInfo * vinfo) ...@@ -64,7 +64,7 @@ get_visualinfo(Display * display, int screen, XVisualInfo * vinfo)
XFree(vi); XFree(vi);
return 0; return 0;
} }
#endif #endif*/
depth = DefaultDepth(display, screen); depth = DefaultDepth(display, screen);
if ((X11_UseDirectColorVisuals() && if ((X11_UseDirectColorVisuals() &&
XMatchVisualInfo(display, screen, depth, DirectColor, vinfo)) || XMatchVisualInfo(display, screen, depth, DirectColor, vinfo)) ||
......
This diff is collapsed.
...@@ -513,9 +513,6 @@ X11_CreateWindow(_THIS, SDL_Window * window) ...@@ -513,9 +513,6 @@ X11_CreateWindow(_THIS, SDL_Window * window)
} else { } else {
y = window->y; y = window->y;
} }
#ifdef SDL_VIDEO_DRIVER_X11_XRENDER
xattr.background_pixel = 0xFF000000;
#endif
w = XCreateWindow(data->display, w = XCreateWindow(data->display,
RootWindow(data->display, displaydata->screen), x, y, RootWindow(data->display, displaydata->screen), x, y,
...@@ -526,6 +523,10 @@ X11_CreateWindow(_THIS, SDL_Window * window) ...@@ -526,6 +523,10 @@ X11_CreateWindow(_THIS, SDL_Window * window)
SDL_SetError("Couldn't create window"); SDL_SetError("Couldn't create window");
return -1; return -1;
} }
/*#ifdef SDL_VIDEO_DRIVER_X11_XRENDER
//XSetWindowBackground(data->display, w, 0xFF000000);
//XSetWindowBackgroundPixmap(data->display, w, ParentRelative);
#endif*/
#if SDL_VIDEO_DRIVER_PANDORA #if SDL_VIDEO_DRIVER_PANDORA
/* Create the GLES window surface */ /* Create the GLES window surface */
_this->gles_data->egl_surface = _this->gles_data->egl_surface =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment