Ver a proveniência

Enable GetWindowHandle() on macOS (#2915)

pull/2916/head
Nikolas há 2 anos
committed by GitHub
ascendente
cometimento
f784961b9c
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros alterados com 2 adições e 1 eliminações
  1. +2
    -1
      src/rcore.c

+ 2
- 1
src/rcore.c Ver ficheiro

@ -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;

||||||
x
 
000:0
Carregando…
Cancelar
Guardar