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

This commit is contained in:
Rob Bradford
2012-04-12 12:11:04 +01:00
parent cddfcf1418
commit 71ca53993e

View File

@ -501,12 +501,12 @@ gdk_wayland_create_cairo_surface (GdkDisplayWayland *display,
data->buffer = create_shm_buffer (display->shm, data->buffer = create_shm_buffer (display->shm,
width, width,
height, height,
WL_SHM_FORMAT_XRGB8888, WL_SHM_FORMAT_ARGB8888,
&data->buf_length, &data->buf_length,
&data->buf); &data->buf);
surface = cairo_image_surface_create_for_data (data->buf, surface = cairo_image_surface_create_for_data (data->buf,
CAIRO_FORMAT_RGB24, CAIRO_FORMAT_ARGB32,
width, width,
height, height,
width * 4); width * 4);