Set up visuals in wayland-server

Still very much hand-wavey, but at least it's only in one place now.
This commit is contained in:
Kristian Høgsberg 2010-12-08 15:12:58 -05:00
parent b3fc757cd8
commit c5c510ec75
6 changed files with 58 additions and 46 deletions

View file

@ -92,9 +92,9 @@ shm_create_buffer(struct wl_client *client, struct wl_shm *shm,
struct wlsc_compositor, shm);
struct wlsc_shm_buffer *buffer;
if (visual != &compositor->argb_visual &&
visual != &compositor->premultiplied_argb_visual &&
visual != &compositor->rgb_visual) {
if (visual != &compositor->compositor.argb_visual &&
visual != &compositor->compositor.premultiplied_argb_visual &&
visual != &compositor->compositor.rgb_visual) {
/* FIXME: Define a real exception event instead of
* abusing this one */
wl_client_post_event(client,