[gtk+] wayland: Use an ARGB buffer for the Cairo and SHM surface



commit 71ca53993eb3953222fb8c3f22c544e5ee89ca7a
Author: Rob Bradford <rob linux intel com>
Date:   Thu Apr 12 12:11:04 2012 +0100

    wayland: Use an ARGB buffer for the Cairo and SHM surface

 gdk/wayland/gdkwindow-wayland.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index c5da98e..4ec77ff 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -501,12 +501,12 @@ gdk_wayland_create_cairo_surface (GdkDisplayWayland *display,
   data->buffer = create_shm_buffer (display->shm,
                                     width,
                                     height,
-                                    WL_SHM_FORMAT_XRGB8888,
+                                    WL_SHM_FORMAT_ARGB8888,
                                     &data->buf_length,
                                     &data->buf);
 
   surface = cairo_image_surface_create_for_data (data->buf,
-                                                 CAIRO_FORMAT_RGB24,
+                                                 CAIRO_FORMAT_ARGB32,
                                                  width,
                                                  height,
                                                  width * 4);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]