diff options
-rw-r--r-- | include/pugl/pugl.h | 2 | ||||
-rw-r--r-- | src/mac.m | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h index e537e8c..e15bb4a 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -670,7 +670,7 @@ puglGetWorldHandle(PuglWorld* world); X11: Returns a pointer to the `Display`. - MacOS: Returns null. + MacOS: Returns a pointer to the `NSApplication`. Windows: Returns the `HMODULE` of the calling process. */ @@ -871,9 +871,9 @@ puglFreeWorldInternals(PuglWorld* world) } void* -puglGetNativeWorld(PuglWorld* PUGL_UNUSED(world)) +puglGetNativeWorld(PuglWorld* world) { - return NULL; + return world->impl->app; } PuglInternals* |