diff options
| author | Nikolas <[email protected]> | 2023-02-07 22:18:14 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-07 22:18:14 +0100 |
| commit | f784961b9ce8f516c60b11d73444803db363ca0d (patch) | |
| tree | b41b46b41805a26aa3257d67519009263552fb59 | |
| parent | e187b693eaa4873a0d44d6578f44c269fd751315 (diff) | |
| download | raylib-f784961b9ce8f516c60b11d73444803db363ca0d.tar.gz raylib-f784961b9ce8f516c60b11d73444803db363ca0d.zip | |
Enable GetWindowHandle() on macOS (#2915)
| -rw-r--r-- | src/rcore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c index 98800a79..7af65516 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -242,6 +242,7 @@ #include <unistd.h> // Required for: usleep() //#define GLFW_EXPOSE_NATIVE_COCOA // WARNING: Fails due to type redefinition + void *glfwGetCocoaWindow(GLFWwindow* handle); #include "GLFW/glfw3native.h" // Required for: glfwGetCocoaWindow() #endif @@ -1677,7 +1678,7 @@ void *GetWindowHandle(void) #endif #if defined(__APPLE__) // NOTE: Returned handle is: (objc_object *) - return NULL; // TODO: return (void *)glfwGetCocoaWindow(window); + return (void *)glfwGetCocoaWindow(CORE.Window.handle); #endif return NULL; |
