glfw: rename capture appropriately
This commit is contained in:
parent
f8be8582af
commit
a9d378583d
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue