summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2023-03-04 18:56:04 +0100
committerRay <[email protected]>2023-03-04 18:56:04 +0100
commit1611cd54e7f9a17bab14902ebe37bd8b2945449d (patch)
tree7578dafa1d6b6eaa1c439791e65e902aa254d78f
parent6897b4359922ba5862eaaba159b24e734ff655ee (diff)
downloadraylib-1611cd54e7f9a17bab14902ebe37bd8b2945449d.tar.gz
raylib-1611cd54e7f9a17bab14902ebe37bd8b2945449d.zip
REVIEWED: `GetWindowHandle()` #2938
-rw-r--r--src/rcore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 443ef8e3..6f4fa295 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -1718,7 +1718,8 @@ void *GetWindowHandle(void)
// typedef unsigned long XID;
// typedef XID Window;
//unsigned long id = (unsigned long)glfwGetX11Window(window);
- return NULL; // TODO: Find a way to return value... cast to void *?
+ //return NULL; // TODO: Find a way to return value... cast to void *?
+ return (void *)CORE.Window.handle;
#endif
#if defined(__APPLE__)
// NOTE: Returned handle is: (objc_object *)