From b0c1e2bc18243b1399baaf08cb995d0f938fb2fb Mon Sep 17 00:00:00 2001 From: terraquad Date: Sat, 15 Jun 2024 11:47:52 +0200 Subject: [PATCH] Update Window.zig --- src/Window.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Window.zig b/src/Window.zig index fe36bf1c4..6a2473cc5 100644 --- a/src/Window.zig +++ b/src/Window.zig @@ -624,8 +624,8 @@ pub inline fn setSize(self: Window, size: Size) void { /// A size with option width/height, used to represent e.g. constraints on a windows size while /// allowing specific axis to be unconstrained (null) if desired. pub const SizeOptional = struct { - width: ?u32, - height: ?u32, + width: ?u32 = null, + height: ?u32 = null, }; /// Sets the size limits of the specified window's content area.