glfw: fix and test Monitor.getVideoModes
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
b76e8d02f2
commit
c6e8bce219
2 changed files with 43 additions and 31 deletions
|
|
@ -7,10 +7,10 @@ const mem = std.mem;
|
|||
const testing = std.testing;
|
||||
const c = @import("c.zig").c;
|
||||
|
||||
pub const Error = @import("errors.zig").Error;
|
||||
const Error = @import("errors.zig").Error;
|
||||
const getError = @import("errors.zig").getError;
|
||||
|
||||
handle: *c.GLFWvidmode,
|
||||
handle: c.GLFWvidmode,
|
||||
|
||||
/// Returns the width of the video mode, in screen coordinates.
|
||||
pub inline fn getWidth(self: VideoMode) usize {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue