Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongoode committed Sep 2, 2024
1 parent 7c4129e commit d254323
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions psst-gui/src/controller/playback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,12 @@ impl PlaybackController {
let hwnd = {
#[cfg(target_os = "windows")]
{
use raw_window_handle::RawWindowHandle;
match window.raw_handle_windows() {
Some(handle) => Some(handle as *mut std::ffi::c_void),
None => None,
use raw_window_handle::{HasWindowHandle, RawWindowHandle};
match window.raw_window_handle() {
RawWindowHandle::Win32(handle) => {
Some(handle.hwnd.get() as *mut std::ffi::c_void)
}
_ => None,
}
}
#[cfg(not(target_os = "windows"))]
Expand Down

0 comments on commit d254323

Please sign in to comment.