glfw: undo setSizeLimits workaround

This commit is contained in:
Ali Chraghi 2022-12-28 20:48:15 +03:30 committed by Stephen Gutekanst
parent 5e2abcbe22
commit fd3aeebdf7

View file

@ -699,8 +699,7 @@ pub const SizeOptional = struct {
/// @thread_safety This function must only be called from the main thread.
///
/// see also: window_sizelimits, glfw.Window.setAspectRatio
// 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 {
pub inline fn setSizeLimits(self: Window, min: SizeOptional, max: SizeOptional) error{PlatformError}!void {
internal_debug.assertInitialized();
if (min.width != null and max.width != null) {