glfw: update system_sdk.zig to latest Zig master
This commit is contained in:
parent
5b2cb46700
commit
784aa40093
5 changed files with 10 additions and 10 deletions
|
|
@ -215,7 +215,7 @@ pub inline fn getUserPointer(self: Monitor, comptime T: type) ?*T {
|
|||
/// @thread_safety This function must only be called from the main thread.
|
||||
///
|
||||
/// see also: monitor_modes, glfw.Monitor.getVideoMode
|
||||
pub inline fn getVideoModes(self: Monitor, allocator: *mem.Allocator) Error![]VideoMode {
|
||||
pub inline fn getVideoModes(self: Monitor, allocator: mem.Allocator) Error![]VideoMode {
|
||||
internal_debug.assertInitialized();
|
||||
var count: c_int = 0;
|
||||
const modes = c.glfwGetVideoModes(self.handle, &count);
|
||||
|
|
@ -357,7 +357,7 @@ pub inline fn setGammaRamp(self: Monitor, ramp: GammaRamp) Error!void {
|
|||
/// @thread_safety This function must only be called from the main thread.
|
||||
///
|
||||
/// see also: monitor_monitors, monitor_event, glfw.monitor.getPrimary
|
||||
pub inline fn getAll(allocator: *mem.Allocator) mem.Allocator.Error![]Monitor {
|
||||
pub inline fn getAll(allocator: mem.Allocator) mem.Allocator.Error![]Monitor {
|
||||
internal_debug.assertInitialized();
|
||||
var count: c_int = 0;
|
||||
const monitors = c.glfwGetMonitors(&count);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue