glfw: rename capture appropriately

This commit is contained in:
InKryption 2021-12-10 04:01:57 +01:00 committed by Stephen Gutekanst
parent f8be8582af
commit a9d378583d

View file

@ -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,