server: use the event sending wrappers

This exposes some type mismatches that are fixed in the next commit.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
Pekka Paalanen 2012-03-02 17:08:59 +02:00
parent 86a5d17afe
commit 5ee70146c6
3 changed files with 32 additions and 48 deletions

View file

@ -178,10 +178,8 @@ 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_ARGB8888);
wl_resource_post_event(resource, WL_SHM_FORMAT,
WL_SHM_FORMAT_XRGB8888);
wl_shm_send_format(resource, WL_SHM_FORMAT_ARGB8888);
wl_shm_send_format(resource, WL_SHM_FORMAT_XRGB8888);
}
WL_EXPORT struct wl_shm *