glfw: fix and test Monitor.getVideoModes

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-07-17 20:15:40 -07:00
parent b76e8d02f2
commit c6e8bce219
2 changed files with 43 additions and 31 deletions

View file

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