From aa82767c9838f2c834d7976ae6377491894ca6fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 1 Dec 2010 20:06:39 -0500 Subject: [PATCH] Use generated wl_interface for visuals --- compositor/compositor.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/compositor/compositor.c b/compositor/compositor.c index 025b022..564a508 100644 --- a/compositor/compositor.c +++ b/compositor/compositor.c @@ -1302,26 +1302,22 @@ init_shaders(struct wlsc_compositor *ec) return 0; } -static const struct wl_interface visual_interface = { - "visual", 1, -}; - static void add_visuals(struct wlsc_compositor *ec) { - ec->argb_visual.object.interface = &visual_interface; + ec->argb_visual.object.interface = &wl_visual_interface; ec->argb_visual.object.implementation = NULL; wl_display_add_object(ec->wl_display, &ec->argb_visual.object); wl_display_add_global(ec->wl_display, &ec->argb_visual.object, NULL); - ec->premultiplied_argb_visual.object.interface = &visual_interface; + ec->premultiplied_argb_visual.object.interface = &wl_visual_interface; ec->premultiplied_argb_visual.object.implementation = NULL; wl_display_add_object(ec->wl_display, &ec->premultiplied_argb_visual.object); wl_display_add_global(ec->wl_display, &ec->premultiplied_argb_visual.object, NULL); - ec->rgb_visual.object.interface = &visual_interface; + ec->rgb_visual.object.interface = &wl_visual_interface; ec->rgb_visual.object.implementation = NULL; wl_display_add_object(ec->wl_display, &ec->rgb_visual.object); wl_display_add_global(ec->wl_display, &ec->rgb_visual.object, NULL); -- 2.7.4