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().
This commit is contained in:
Kristian Høgsberg 2011-02-07 20:48:01 -05:00
parent 0bbb97bab1
commit 3eff366911
2 changed files with 4 additions and 2 deletions

View file

@ -197,7 +197,8 @@ create_surface(struct window *window)
window->surface = wl_compositor_create_surface(display->compositor); window->surface = wl_compositor_create_surface(display->compositor);
visual = wl_display_get_premultiplied_argb_visual(display->display); visual = wl_display_get_premultiplied_argb_visual(display->display);
window->native = window->native =
wl_egl_window_create(window->surface, wl_egl_window_create(display->native,
window->surface,
window->geometry.width, window->geometry.width,
window->geometry.height, window->geometry.height,
visual); visual);

View file

@ -41,7 +41,8 @@ void
wl_egl_display_destroy(struct wl_egl_display *egl_display); wl_egl_display_destroy(struct wl_egl_display *egl_display);
struct wl_egl_window * 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, int width, int height,
struct wl_visual *visual); struct wl_visual *visual);