diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-01-11 14:19:50 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-01-11 14:19:54 -0500 |
commit | 151ca457b4384c385c0062716b55595e22fef7ea (patch) | |
tree | 767d270f972efc389ba390ff65c3dcd5153d5488 /src | |
parent | b2e619c7409a98936233b5f8afb8797f5ac457e9 (diff) |
shm: Drop non-premul format, use less ambiguous ARGB8888 naming convention
This also matches the new wl_drm format names.
Diffstat (limited to 'src')
-rw-r--r-- | src/wayland-shm.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/wayland-shm.c b/src/wayland-shm.c index c6020ae..2998c3d 100644 --- a/src/wayland-shm.c +++ b/src/wayland-shm.c @@ -123,9 +123,8 @@ shm_create_buffer(struct wl_client *client, struct wl_resource *resource, 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, @@ -179,10 +178,10 @@ bind_shm(struct wl_client *client, 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 * |