瀏覽代碼

Enable GetWindowHandle() on macOS (#2915)

pull/2916/head
Nikolas 2 年之前
committed by GitHub
父節點
當前提交
f784961b9c
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      src/rcore.c

+ 2
- 1
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 nb">NULL; // TODO: return (void *)glfwGetCocoaWindow(window);
return p">(void *)glfwGetCocoaWindow(CORE.Window.handle);
#endif
return NULL;

Loading…
取消
儲存