diff options
| author | Kristian Høgsberg <krh@bitplanet.net> | 2010-12-01 20:06:39 -0500 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-12-01 20:06:39 -0500 |
| commit | aa82767c9838f2c834d7976ae6377491894ca6fe (patch) | |
| tree | 5eea92992dad57e5150b664536d1ac55399d3180 | |
| parent | Silence scanner makefile rule by default (diff) | |
| download | wayland-aa82767c9838f2c834d7976ae6377491894ca6fe.tar wayland-aa82767c9838f2c834d7976ae6377491894ca6fe.tar.gz wayland-aa82767c9838f2c834d7976ae6377491894ca6fe.tar.bz2 wayland-aa82767c9838f2c834d7976ae6377491894ca6fe.tar.lz wayland-aa82767c9838f2c834d7976ae6377491894ca6fe.tar.xz wayland-aa82767c9838f2c834d7976ae6377491894ca6fe.tar.zst wayland-aa82767c9838f2c834d7976ae6377491894ca6fe.zip | |
Use generated wl_interface for visuals
| -rw-r--r-- | compositor/compositor.c | 10 |
1 files 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); |
