Skip to content

Commit e9bd486

Browse files
committed
Fix setWindowAttribute arg mixup. Closes #17
1 parent ec0b1d8 commit e9bd486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zglfw.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ pub fn setWindowAttribute(
785785
comptime attrib: Window.Attribute,
786786
value: Window.Attribute.ValueType(attrib),
787787
) void {
788-
setWindowAttributeUntyped(window, cIntCast(attrib), value);
788+
setWindowAttributeUntyped(window, attrib, cIntCast(value));
789789
}
790790
pub const setWindowAttributeUntyped = glfwSetWindowAttrib;
791791
extern fn glfwSetWindowAttrib(window: *Window, attrib: Window.Attribute, value: c_int) void;

0 commit comments

Comments
 (0)