core: darwin: fix inverted width/height
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
3bb7833e38
commit
3b45eda8df
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue