</enum>
<enum name="format">
- <entry name="argb32" value="0"/>
- <entry name="premultiplied_argb32" value="1"/>
- <entry name="xrgb32" value="2"/>
+ <entry name="argb8888" value="0"/>
+ <entry name="xrgb8888" value="1"/>
</enum>
<!-- Transfer a shm buffer to the server. The allocated buffer
switch (format) {
- case WL_SHM_FORMAT_ARGB32:
- case WL_SHM_FORMAT_PREMULTIPLIED_ARGB32:
- case WL_SHM_FORMAT_XRGB32:
+ case WL_SHM_FORMAT_ARGB8888:
+ case WL_SHM_FORMAT_XRGB8888:
break;
default:
wl_resource_post_error(resource,
resource = wl_client_add_object(client, &wl_shm_interface,
&shm_interface, id, data);
- wl_resource_post_event(resource, WL_SHM_FORMAT, WL_SHM_FORMAT_ARGB32);
wl_resource_post_event(resource, WL_SHM_FORMAT,
- WL_SHM_FORMAT_PREMULTIPLIED_ARGB32);
- wl_resource_post_event(resource, WL_SHM_FORMAT, WL_SHM_FORMAT_XRGB32);
+ WL_SHM_FORMAT_ARGB8888);
+ wl_resource_post_event(resource, WL_SHM_FORMAT,
+ WL_SHM_FORMAT_XRGB8888);
}
WL_EXPORT struct wl_shm *