Commit 53feb936 authored by chadversary's avatar chadversary

egl: Update wegl_display_init signature

Change the type of parameter 'native_display' from intptr_t to void*.

No intended change in behavior.  Prepares for eventual use of
eglGetPlatformDisplay, whose 'native_display' parameter has type void*.
Reviewed-by: Emil Velikov's avatarEmil Velikov <emil.l.velikov@gmail.com>
parent 7bde8ea5
......@@ -51,8 +51,7 @@ droid_display_connect(struct wcore_platform *wc_plat,
if (self->pSFContainer == NULL)
goto error;
ok = wegl_display_init(&self->wegl, wc_plat,
(intptr_t) EGL_DEFAULT_DISPLAY);
ok = wegl_display_init(&self->wegl, wc_plat, EGL_DEFAULT_DISPLAY);
if (!ok)
goto error;
......
......@@ -95,7 +95,7 @@ get_extensions(struct wegl_display *dpy)
bool
wegl_display_init(struct wegl_display *dpy,
struct wcore_platform *wc_plat,
intptr_t native_display)
void *native_display)
{
struct wegl_platform *plat = wegl_platform(wc_plat);
bool ok;
......
......@@ -57,7 +57,7 @@ DEFINE_CONTAINER_CAST_FUNC(wegl_display,
bool
wegl_display_init(struct wegl_display *dpy,
struct wcore_platform *wc_plat,
intptr_t native_display);
void *native_display);
bool
wegl_display_teardown(struct wegl_display *dpy);
......
......@@ -154,7 +154,7 @@ wgbm_display_connect(struct wcore_platform *wc_plat,
goto error;
}
ok = wegl_display_init(&self->wegl, wc_plat, (intptr_t) self->gbm_device);
ok = wegl_display_init(&self->wegl, wc_plat, self->gbm_device);
if (!ok)
goto error;
......
......@@ -142,7 +142,7 @@ wayland_display_connect(struct wcore_platform *wc_plat,
goto error;
}
ok = wegl_display_init(&self->wegl, wc_plat, (intptr_t) self->wl_display);
ok = wegl_display_init(&self->wegl, wc_plat, self->wl_display);
if (!ok)
goto error;
......
......@@ -62,7 +62,7 @@ xegl_display_connect(
if (!ok)
goto error;
ok = wegl_display_init(&self->wegl, wc_plat, (intptr_t) self->x11.xlib);
ok = wegl_display_init(&self->wegl, wc_plat, self->x11.xlib);
if (!ok)
goto error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment