aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pugl/pugl_internal_types.h2
-rw-r--r--pugl/pugl_x11.c2
-rw-r--r--pugl/pugl_x11_cairo.c4
-rw-r--r--pugl/pugl_x11_gl.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/pugl/pugl_internal_types.h b/pugl/pugl_internal_types.h
index cdca942..fad1b2d 100644
--- a/pugl/pugl_internal_types.h
+++ b/pugl/pugl_internal_types.h
@@ -100,7 +100,7 @@ typedef struct {
int (*resize)(PuglView*, int, int);
/** Return the puglGetContext() handle for the application, if any. */
- void* (*getHandle)(PuglView*);
+ void* (*getContext)(PuglView*);
} PuglBackend;
#endif // PUGL_INTERNAL_TYPES_H
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c
index 70f4466..55ea94f 100644
--- a/pugl/pugl_x11.c
+++ b/pugl/pugl_x11.c
@@ -608,5 +608,5 @@ puglGetNativeWindow(PuglView* view)
void*
puglGetContext(PuglView* view)
{
- return view->impl->backend.getHandle(view);
+ return view->impl->backend.getContext(view);
}
diff --git a/pugl/pugl_x11_cairo.c b/pugl/pugl_x11_cairo.c
index 6992c1a..d045584 100644
--- a/pugl/pugl_x11_cairo.c
+++ b/pugl/pugl_x11_cairo.c
@@ -110,7 +110,7 @@ puglX11CairoResize(PuglView* view, int width, int height)
}
static void*
-puglX11CairoGetHandle(PuglView* view)
+puglX11CairoGetContext(PuglView* view)
{
PuglInternals* const impl = view->impl;
PuglX11CairoSurface* const surface = (PuglX11CairoSurface*)impl->surface;
@@ -127,7 +127,7 @@ PuglBackend puglGetX11CairoBackend(void)
puglX11CairoEnter,
puglX11CairoLeave,
puglX11CairoResize,
- puglX11CairoGetHandle
+ puglX11CairoGetContext
};
return puglX11CairoBackend;
diff --git a/pugl/pugl_x11_gl.c b/pugl/pugl_x11_gl.c
index 66ba213..a4e0f3a 100644
--- a/pugl/pugl_x11_gl.c
+++ b/pugl/pugl_x11_gl.c
@@ -182,7 +182,7 @@ puglX11GlResize(PuglView* PUGL_UNUSED(view),
}
static void*
-puglX11GlGetHandle(PuglView* PUGL_UNUSED(view))
+puglX11GlGetContext(PuglView* PUGL_UNUSED(view))
{
return NULL;
}
@@ -202,7 +202,7 @@ PuglBackend puglGetX11GlBackend(void)
puglX11GlEnter,
puglX11GlLeave,
puglX11GlResize,
- puglX11GlGetHandle
+ puglX11GlGetContext
};
return puglX11GlBackend;