Skip to content

Commit

Permalink
Refactor window delegate to use much less unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Sep 2, 2022
1 parent 6b366bd commit 5c72c34
Show file tree
Hide file tree
Showing 2 changed files with 187 additions and 263 deletions.
2 changes: 1 addition & 1 deletion src/platform_impl/macos/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ impl WinitWindow {
unsafe { NSFilenamesPboardType }.copy()
]));

let delegate = WinitWindowDelegate::new(this.clone(), attrs.fullscreen.is_some());
let delegate = WinitWindowDelegate::new(&this, attrs.fullscreen.is_some());

// Set fullscreen mode after we setup everything
this.set_fullscreen(attrs.fullscreen);
Expand Down
Loading

0 comments on commit 5c72c34

Please sign in to comment.