Skip to content

Commit 2107fa7

Browse files
committed
API fixes
Fixes #15 and #16
1 parent 46c2460 commit 2107fa7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/zglfw.zig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ extern fn glfwGetError(out_desc: ?*?[*:0]const u8) ErrorCode;
151151

152152
pub const setErrorCallback = glfwSetErrorCallback;
153153
extern fn glfwSetErrorCallback(?ErrorFn) ?ErrorFn;
154-
pub const ErrorFn = *const fn (ErrorCode, desc: *?[:0]const u8) callconv(.C) void;
154+
pub const ErrorFn = *const fn (ErrorCode, desc: ?[*:0]const u8) callconv(.C) void;
155155

156156
pub fn rawMouseMotionSupported() bool {
157157
return glfwRawMouseMotionSupported() == TRUE;
@@ -697,6 +697,7 @@ pub const Window = opaque {
697697
pub const getKey = zglfw.getKey;
698698
pub const getMouseButton = zglfw.getMouseButton;
699699
pub const setSizeLimits = zglfw.setWindowSizeLimits;
700+
pub const setSize = zglfw.setWindowSize;
700701
pub const setPos = zglfw.setWindowPos;
701702
pub const setTitle = zglfw.setWindowTitle;
702703
pub const setIcon = zglfw.setWindowIcon;
@@ -915,7 +916,7 @@ extern fn glfwGetFramebufferSize(*Window, width: ?*c_int, height: ?*c_int) void;
915916
pub const getWindowSize = glfwGetWindowSize;
916917
extern fn glfwGetWindowSize(*Window, width: ?*c_int, height: ?*c_int) void;
917918

918-
pub const setSize = glfwSetWindowSize;
919+
pub const setWindowSize = glfwSetWindowSize;
919920
extern fn glfwSetWindowSize(*Window, width: c_int, height: c_int) void;
920921

921922
pub const getWindowPos = glfwGetWindowPos;

0 commit comments

Comments
 (0)