Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/ui/egl-helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
extern EGLDisplay *qemu_egl_display;
extern EGLConfig qemu_egl_config;

EGLSurface qemu_egl_init_surface_x11(EGLContext ectx, Window win);
EGLSurface qemu_egl_init_surface_x11(EGLContext ectx, EGLNativeWindowType win);

int qemu_egl_init_dpy(EGLNativeDisplayType dpy, bool gles, bool debug);
EGLContext qemu_egl_init_ctx(void);
Expand Down
4 changes: 2 additions & 2 deletions ui/egl-helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static int egl_debug;

/* ---------------------------------------------------------------------- */

EGLSurface qemu_egl_init_surface_x11(EGLContext ectx, Window win)
EGLSurface qemu_egl_init_surface_x11(EGLContext ectx, EGLNativeWindowType win)
{
EGLSurface esurface;
EGLBoolean b;
Expand All @@ -36,7 +36,7 @@ EGLSurface qemu_egl_init_surface_x11(EGLContext ectx, Window win)
(unsigned long) win);
esurface = eglCreateWindowSurface(qemu_egl_display,
qemu_egl_config,
(EGLNativeWindowType)win, NULL);
win, NULL);
if (esurface == EGL_NO_SURFACE) {
fprintf(stderr, "egl: eglCreateWindowSurface failed\n");
return NULL;
Expand Down
3 changes: 2 additions & 1 deletion ui/gtk-egl.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ void gd_egl_init(VirtualConsole *vc)
}

vc->gfx.ectx = qemu_egl_init_ctx();
vc->gfx.esurface = qemu_egl_init_surface_x11(vc->gfx.ectx, x11_window);
vc->gfx.esurface = qemu_egl_init_surface_x11
(vc->gfx.ectx, (EGLNativeWindowType)x11_window);

assert(vc->gfx.esurface);
}
Expand Down