diff src/video/x11/SDL_x11window.c @ 4591:1e998db9b597

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.
author Sunny Sachanandani <sunnysachanandani@gmail.com>
date Wed, 14 Jul 2010 19:17:11 +0530
parents 1ad70fb49fcb
children 844b5ef4b149
line wrap: on
line diff
--- a/src/video/x11/SDL_x11window.c	Fri Jul 09 21:36:41 2010 +0530
+++ b/src/video/x11/SDL_x11window.c	Wed Jul 14 19:17:11 2010 +0530
@@ -513,9 +513,6 @@
     } else {
         y = window->y;
     }
-#ifdef SDL_VIDEO_DRIVER_X11_XRENDER
-    xattr.background_pixel = 0xFF000000;
-#endif
 
     w = XCreateWindow(data->display,
                       RootWindow(data->display, displaydata->screen), x, y,
@@ -526,6 +523,10 @@
         SDL_SetError("Couldn't create window");
         return -1;
     }
+/*#ifdef SDL_VIDEO_DRIVER_X11_XRENDER
+    //XSetWindowBackground(data->display, w, 0xFF000000);
+    //XSetWindowBackgroundPixmap(data->display, w, ParentRelative);
+#endif*/
 #if SDL_VIDEO_DRIVER_PANDORA
     /* Create the GLES window surface */
     _this->gles_data->egl_surface =