From a9d378583d407fb474fa2e1ffbddcf948dcce538 Mon Sep 17 00:00:00 2001 From: InKryption Date: Fri, 10 Dec 2021 04:01:57 +0100 Subject: [PATCH] glfw: rename capture appropriately --- glfw/src/Window.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/src/Window.zig b/glfw/src/Window.zig index eb8d045e..0132159a 100644 --- a/glfw/src/Window.zig +++ b/glfw/src/Window.zig @@ -272,7 +272,7 @@ pub const Hints = struct { const hint_value = @field(hints, field_name); switch (@TypeOf(hint_value)) { bool => c.glfwWindowHint(hint_tag, @boolToInt(hint_value)), - ?PositiveCInt => c.glfwWindowHint(hint_tag, if (hint_value) |refresh_rate| refresh_rate else glfw.dont_care), + ?PositiveCInt => c.glfwWindowHint(hint_tag, if (hint_value) |unwrapped| unwrapped else glfw.dont_care), c_int => c.glfwWindowHint(hint_tag, hint_value), ClientAPI,