mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 03:50:47 -05:00
Updates in line with latest wayland protocol
The shm buffer format enum values were renamed and the explicitly premultiplied format was dropped since it's now assumed if the buffer has an alpha component then it's premultiplied. Reviewed-by: Neil Roberts <neil@linux.intel.com> Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
parent
6cc58f7d7d
commit
1bfd1d85eb
@ -577,19 +577,17 @@ clutter_wayland_surface_damage_buffer (ClutterWaylandSurface *self,
|
|||||||
switch (wl_shm_buffer_get_format (buffer))
|
switch (wl_shm_buffer_get_format (buffer))
|
||||||
{
|
{
|
||||||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||||
case WL_SHM_FORMAT_PREMULTIPLIED_ARGB32:
|
case WL_SHM_FORMAT_ARGB8888:
|
||||||
format = COGL_PIXEL_FORMAT_ARGB_8888_PRE;
|
format = COGL_PIXEL_FORMAT_ARGB_8888_PRE;
|
||||||
break;
|
break;
|
||||||
case WL_SHM_FORMAT_ARGB32:
|
case WL_SHM_FORMAT_XRGB8888:
|
||||||
case WL_SHM_FORMAT_XRGB32:
|
|
||||||
format = COGL_PIXEL_FORMAT_ARGB_8888;
|
format = COGL_PIXEL_FORMAT_ARGB_8888;
|
||||||
break;
|
break;
|
||||||
#elif G_BYTE_ORDER == G_LITTLE_ENDIAN
|
#elif G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||||
case WL_SHM_FORMAT_PREMULTIPLIED_ARGB32:
|
case WL_SHM_FORMAT_ARGB8888:
|
||||||
format = COGL_PIXEL_FORMAT_BGRA_8888_PRE;
|
format = COGL_PIXEL_FORMAT_BGRA_8888_PRE;
|
||||||
break;
|
break;
|
||||||
case WL_SHM_FORMAT_ARGB32:
|
case WL_SHM_FORMAT_XRGB8888:
|
||||||
case WL_SHM_FORMAT_XRGB32:
|
|
||||||
format = COGL_PIXEL_FORMAT_BGRA_8888;
|
format = COGL_PIXEL_FORMAT_BGRA_8888;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user