From f3f35b36e3ae9cb6b85f39e15ab0336c1ee65b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Ekstr=C3=B6m?= Date: Mon, 6 Jan 2025 17:04:10 +0100 Subject: [PATCH] Update glfwSetWindowShouldClose signature to take new Bool enum (#12) --- src/zglfw.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zglfw.zig b/src/zglfw.zig index 913eb7d..e996a51 100644 --- a/src/zglfw.zig +++ b/src/zglfw.zig @@ -912,7 +912,7 @@ extern fn glfwWindowShouldClose(window: *Window) Bool; pub fn setWindowShouldClose(window: *Window, should_close: bool) void { return glfwSetWindowShouldClose(window, if (should_close) TRUE else FALSE); } -extern fn glfwSetWindowShouldClose(*Window, should_close: c_int) void; +extern fn glfwSetWindowShouldClose(*Window, should_close: Bool) void; pub const setCursor = glfwSetCursor; extern fn glfwSetCursor(*Window, ?*Cursor) void;