Skip to content

Commit

Permalink
Fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongoode committed Sep 1, 2024
1 parent 8bd5791 commit 4946fcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
- name: Bundle macOS Release
if: runner.os == 'macOS'
run: cargo bundle --release
# working-directory: psst-gui
working-directory: psst-gui

- name: Create macOS universal binary
if: runner.os == 'macOS'
Expand Down
9 changes: 5 additions & 4 deletions psst-gui/src/controller/playback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,11 @@ impl PlaybackController {
let hwnd = {
#[cfg(target_os = "windows")]
{
use raw_window_handle::{HasRawWindowHandle, RawWindowHandle};
let handle = unsafe { window.raw_window_handle() };
match handle {
RawWindowHandle::Win32(h) => Some(h.hwnd as *mut std::ffi::c_void),
use raw_window_handle::{HasWindowHandle, RawWindowHandle};
let handle = window.window_handle()
.map_err(|_| souvlaki::Error::UnsupportedPlatform)?;
match handle.as_raw() {
RawWindowHandle::Win32(h) => Some(h.hwnd.get() as *mut std::ffi::c_void),
_ => None,
}
}
Expand Down

0 comments on commit 4946fcb

Please sign in to comment.