Commit 7100a5e0 authored by Kristian Høgsberg's avatar Kristian Høgsberg

Replace two remaining wl_display_add_gloavl() occurences

parent 93d888ae
......@@ -258,7 +258,7 @@ bind_shm(struct wl_client *client,
WL_EXPORT int
wl_display_init_shm(struct wl_display *display)
{
if (!wl_display_add_global(display, &wl_shm_interface, NULL, bind_shm))
if (!wl_global_create(display, &wl_shm_interface, 1, NULL, bind_shm))
return -1;
return 0;
......
......@@ -266,8 +266,9 @@ TEST(queue)
}
for (i = 0; i < ARRAY_LENGTH(dummy_interfaces); i++)
wl_display_add_global(display.display, dummy_interfaces[i],
NULL, dummy_bind);
wl_global_create(display.display, dummy_interfaces[i],
dummy_interfaces[i]->version,
NULL, dummy_bind);
ret = wl_display_add_socket(display.display, SOCKET_NAME);
assert(ret == 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment