From 3eff366911eb87c1d7c4cdcceb0fd52c218bd2bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 7 Feb 2011 20:48:01 -0500 Subject: [PATCH] Add struct wl_egl_display argument to wl_egl_window_create We don't need it in the mesa implementation, but other implementations might and it's symmetric with wl_egl_pixmap_create(). --- clients/simple-client.c | 3 ++- wayland/wayland-egl.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/clients/simple-client.c b/clients/simple-client.c index 9cc37d1..23d4b00 100644 --- a/clients/simple-client.c +++ b/clients/simple-client.c @@ -197,7 +197,8 @@ create_surface(struct window *window) window->surface = wl_compositor_create_surface(display->compositor); visual = wl_display_get_premultiplied_argb_visual(display->display); window->native = - wl_egl_window_create(window->surface, + wl_egl_window_create(display->native, + window->surface, window->geometry.width, window->geometry.height, visual); diff --git a/wayland/wayland-egl.h b/wayland/wayland-egl.h index 0cb4627..46e2e43 100644 --- a/wayland/wayland-egl.h +++ b/wayland/wayland-egl.h @@ -41,7 +41,8 @@ void wl_egl_display_destroy(struct wl_egl_display *egl_display); struct wl_egl_window * -wl_egl_window_create(struct wl_surface *surface, +wl_egl_window_create(struct wl_egl_display *egl_display, + struct wl_surface *surface, int width, int height, struct wl_visual *visual); -- 2.7.4