Skip to content

Commit

Permalink
Update glfwSetWindowShouldClose signature to take new Bool enum (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
simeks authored Jan 6, 2025
1 parent c2f6b33 commit f3f35b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zglfw.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f3f35b3

Please sign in to comment.