From 69cbe954ac63aa99df07d1bcfff0a0974f668c3e Mon Sep 17 00:00:00 2001 From: Ali Chraghi Date: Wed, 28 Dec 2022 20:48:15 +0330 Subject: [PATCH] glfw: undo setSizeLimits workaround --- libs/glfw/src/Window.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/glfw/src/Window.zig b/libs/glfw/src/Window.zig index 1810e9bb..fa11bd84 100644 --- a/libs/glfw/src/Window.zig +++ b/libs/glfw/src/Window.zig @@ -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) {