Skip to content

Commit

Permalink
fix initHint value type
Browse files Browse the repository at this point in the history
  • Loading branch information
hazeycode committed Nov 22, 2024
1 parent 68403d1 commit ad82ca5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/zglfw.zig
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ pub const InitHint = enum(c_int) {

pub const set = initHint;
};
pub fn initHint(hint: InitHint, value: bool) void {
glfwInitHint(hint, @intFromBool(value));
}
pub const initHint = glfwInitHint;
extern fn glfwInitHint(hint: InitHint, value: c_int) void;

pub fn init() Error!void {
if (glfwInit() == TRUE) return;
if (glfwInit() == TRUE) {
return;
}
try maybeError();
unreachable;
}
Expand Down

0 comments on commit ad82ca5

Please sign in to comment.