diff options
| author | Ray <[email protected]> | 2018-10-08 13:14:15 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2018-10-08 13:14:15 +0200 |
| commit | ca1e309d9d132debb40f55f57a177af085e49194 (patch) | |
| tree | 873ef36b8e07816b56eb9cf17148a5317a9b8300 /src | |
| parent | 2feea87b616292b5bce4454a42c2d048f1cce7d8 (diff) | |
| download | raylib-ca1e309d9d132debb40f55f57a177af085e49194.tar.gz raylib-ca1e309d9d132debb40f55f57a177af085e49194.zip | |
Corrected issue with GetWindowHandle()
Not supported for the moment, issues with Linux (symbol `Font` redefined) and OSX (NSGL type redefined)
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -147,11 +147,11 @@ #if defined(_WIN32) #define GLFW_EXPOSE_NATIVE_WIN32 #elif defined(__linux__) - #define GLFW_EXPOSE_NATIVE_X11 + //#define GLFW_EXPOSE_NATIVE_X11 // WARNING: Exposing Xlib.h > X.h results in dup symbols for Font type //GLFW_EXPOSE_NATIVE_WAYLAND //GLFW_EXPOSE_NATIVE_MIR #elif defined(__APPLE__) - #define GLFW_EXPOSE_NATIVE_COCOA + //#define GLFW_EXPOSE_NATIVE_COCOA // WARNING: NSGL typedef redefinition with different types ('struct objc_object *' vs 'void *') > glfw3native issue? #endif #include <GLFW/glfw3native.h> // WARNING: It requires customization to avoid windows.h inclusion! @@ -813,11 +813,11 @@ void *GetWindowHandle(void) // NOTE: Returned handle is: unsigned long Window (X.h) // typedef unsigned long XID; // typedef XID Window; - unsigned long id = (unsigned long)glfwGetX11Window(window); + //unsigned long id = (unsigned long)glfwGetX11Window(window); return NULL; // TODO: Find a way to return value... cast to void *? #elif defined(__APPLE__) // NOTE: Returned handle is: void *id - return glfwGetCocoaWindow(window); + return NULL; //glfwGetCocoaWindow(window); #else return NULL; #endif |
