[gtk+] wayland: Use an ARGB buffer for the Cairo and SHM surface
- From: Rob Bradford <rbradford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Use an ARGB buffer for the Cairo and SHM surface
- Date: Mon, 16 Apr 2012 14:27:42 +0000 (UTC)
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]