Fix minor regressions introduced in 3e79a12
3e79a12f3d
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2e9347399d
commit
0cdac6c68a
3 changed files with 3 additions and 3 deletions
|
|
@ -394,7 +394,7 @@ pub inline fn getAll(allocator: mem.Allocator) mem.Allocator.Error![]Monitor {
|
||||||
Error.NotInitialized => unreachable,
|
Error.NotInitialized => unreachable,
|
||||||
else => unreachable,
|
else => unreachable,
|
||||||
};
|
};
|
||||||
return &.{};
|
unreachable;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the primary monitor.
|
/// Returns the primary monitor.
|
||||||
|
|
|
||||||
|
|
@ -1304,7 +1304,7 @@ pub inline fn getAttrib(self: Window, attrib: Attrib) error{PlatformError}!i32 {
|
||||||
Error.PlatformError => |e| e,
|
Error.PlatformError => |e| e,
|
||||||
else => unreachable,
|
else => unreachable,
|
||||||
};
|
};
|
||||||
unreachable;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sets an attribute of the specified window.
|
/// Sets an attribute of the specified window.
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@ pub inline fn getTimerValue() u64 {
|
||||||
pub inline fn getTimerFrequency() u64 {
|
pub inline fn getTimerFrequency() u64 {
|
||||||
internal_debug.assertInitialized();
|
internal_debug.assertInitialized();
|
||||||
const frequency = c.glfwGetTimerFrequency();
|
const frequency = c.glfwGetTimerFrequency();
|
||||||
if (frequency != 0) frequency;
|
if (frequency != 0) return frequency;
|
||||||
getError() catch |err| return switch (err) {
|
getError() catch |err| return switch (err) {
|
||||||
Error.NotInitialized => unreachable,
|
Error.NotInitialized => unreachable,
|
||||||
else => unreachable,
|
else => unreachable,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue