From 3b45eda8dfb8f37240aacdafaaa0017119ab3f7e Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 1 Dec 2024 12:23:12 -0700 Subject: [PATCH] core: darwin: fix inverted width/height Signed-off-by: Stephen Gutekanst --- src/core/Darwin.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Darwin.zig b/src/core/Darwin.zig index 031b8964..4690ce47 100644 --- a/src/core/Darwin.zig +++ b/src/core/Darwin.zig @@ -73,8 +73,8 @@ pub fn tick(core: *Core) !void { // Handle resizing the window when the user changes width or height if (core.windows.updated(window_id, .width) or core.windows.updated(window_id, .height)) { var frame = native_window.frame(); - frame.size.height = @floatFromInt(core.windows.get(window_id, .width)); - frame.size.width = @floatFromInt(core.windows.get(window_id, .height)); + frame.size.width = @floatFromInt(core.windows.get(window_id, .width)); + frame.size.height = @floatFromInt(core.windows.get(window_id, .height)); native_window.setFrame_display_animate(frame, true, true); } }