glfw: workaround self-hosted compiler bug
Helps hexops/mach#581 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
6583f6b879
commit
70b8d52c77
1 changed files with 2 additions and 1 deletions
|
@ -699,7 +699,8 @@ pub const SizeOptional = struct {
|
||||||
/// @thread_safety This function must only be called from the main thread.
|
/// @thread_safety This function must only be called from the main thread.
|
||||||
///
|
///
|
||||||
/// see also: window_sizelimits, glfw.Window.setAspectRatio
|
/// see also: window_sizelimits, glfw.Window.setAspectRatio
|
||||||
pub inline fn setSizeLimits(self: Window, min: SizeOptional, max: SizeOptional) error{PlatformError}!void {
|
// TODO(self-hosted): make inline fn again, once https://github.com/ziglang/zig/issues/13164 is fixed.
|
||||||
|
pub fn setSizeLimits(self: Window, min: SizeOptional, max: SizeOptional) error{PlatformError}!void {
|
||||||
internal_debug.assertInitialized();
|
internal_debug.assertInitialized();
|
||||||
|
|
||||||
if (min.width != null and max.width != null) {
|
if (min.width != null and max.width != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue