From e6183b3dbe6b83d642cad1dfb296083ce8c53360 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 25 May 2021 12:07:17 -0400 Subject: Rename event structs in a more readable style Aside from reading more naturally, this avoids clashes with types that are not events, like PuglEventFlags. This is also more consistent with the C++ bindings, where "EventExpose" would be quite strange, for example. Apologies for the noise. Aliases to the old names will be preserved in the deprecated API like other things for a short while. --- src/x11_gl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/x11_gl.c') diff --git a/src/x11_gl.c b/src/x11_gl.c index 34152de..8c061cd 100644 --- a/src/x11_gl.c +++ b/src/x11_gl.c @@ -110,7 +110,7 @@ puglX11GlConfigure(PuglView* view) } static PuglStatus -puglX11GlEnter(PuglView* view, const PuglEventExpose* PUGL_UNUSED(expose)) +puglX11GlEnter(PuglView* view, const PuglExposeEvent* PUGL_UNUSED(expose)) { PuglX11GlSurface* surface = (PuglX11GlSurface*)view->impl->surface; glXMakeCurrent(view->impl->display, view->impl->win, surface->ctx); @@ -118,7 +118,7 @@ puglX11GlEnter(PuglView* view, const PuglEventExpose* PUGL_UNUSED(expose)) } static PuglStatus -puglX11GlLeave(PuglView* view, const PuglEventExpose* expose) +puglX11GlLeave(PuglView* view, const PuglExposeEvent* expose) { if (expose && view->hints[PUGL_DOUBLE_BUFFER]) { glXSwapBuffers(view->impl->display, view->impl->win); -- cgit v1.2.1