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 d254323 commit 2202909
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions psst-gui/src/controller/playback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use druid::{
widget::{prelude::*, Controller},
Code, ExtEventSink, InternalLifeCycle, KbKey, WindowHandle,
};
use druid_shell::raw_window_handle::{HasRawWindowHandle, RawWindowHandle};
use psst_core::{
audio::{normalize::NormalizationLevel, output::DefaultAudioOutput},
cache::Cache,
Expand Down Expand Up @@ -128,11 +129,8 @@ impl PlaybackController {
let hwnd = {
#[cfg(target_os = "windows")]
{
use raw_window_handle::{HasWindowHandle, RawWindowHandle};
match window.raw_window_handle() {
RawWindowHandle::Win32(handle) => {
Some(handle.hwnd.get() as *mut std::ffi::c_void)
}
RawWindowHandle::Win32(handle) => Some(handle.hwnd.get() as *mut std::ffi::c_void),
_ => None,
}
}
Expand Down

0 comments on commit 2202909

Please sign in to comment.