glfw: correct getCocoaWindow return type
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
d61362d8fb
commit
f2cde765c3
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ pub fn Native(comptime options: BackendOptions) type {
|
||||||
/// Possible errors include glfw.Error.NotInitalized.
|
/// Possible errors include glfw.Error.NotInitalized.
|
||||||
///
|
///
|
||||||
/// thread_safety: This function may be called from any thread. Access is not synchronized.
|
/// thread_safety: This function may be called from any thread. Access is not synchronized.
|
||||||
pub fn getCocoaWindow(window: Window) u32 {
|
pub fn getCocoaWindow(window: Window) ?*anyopaque {
|
||||||
internal_debug.assertInitialized();
|
internal_debug.assertInitialized();
|
||||||
const win = native.glfwGetCocoaWindow(@ptrCast(*native.GLFWwindow, window.handle));
|
const win = native.glfwGetCocoaWindow(@ptrCast(*native.GLFWwindow, window.handle));
|
||||||
getError() catch |err| return switch (err) {
|
getError() catch |err| return switch (err) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue