Skip to content

Commit

Permalink
Rename Hint to InitHint for clarity (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
terraquad authored Nov 20, 2024
1 parent 8199e35 commit 345fea0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zglfw.zig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ comptime {
// Misc
//
//--------------------------------------------------------------------------------------------------
pub const Hint = enum(i32) {
pub const InitHint = enum(i32) {
joystick_hat_buttons = 0x00050001,
angle_platform_type = 0x00050002,
platform = 0x00050003,
Expand All @@ -22,10 +22,10 @@ pub const Hint = enum(i32) {
x11_xcb_vulkan_surface = 0x00052001,
wayland_libdecor = 0x00053001,

pub fn set(hint: Hint, value: bool) void {
pub fn set(hint: InitHint, value: bool) void {
glfwInitHint(hint, @intFromBool(value));
}
extern fn glfwInitHint(hint: Hint, value: i32) void;
extern fn glfwInitHint(hint: InitHint, value: i32) void;
};

pub fn init() Error!void {
Expand Down

0 comments on commit 345fea0

Please sign in to comment.