1
0
Fork 0

fix: wrong window handle on windows

This commit is contained in:
iglak 2024-01-01 21:45:10 +01:00 committed by Robbert van der Helm
parent 4e8beb1098
commit 36ee023fb3

View file

@ -2773,7 +2773,7 @@ impl<P: ClapPlugin> Wrapper<P> {
} else if api == CLAP_WINDOW_API_COCOA { } else if api == CLAP_WINDOW_API_COCOA {
ParentWindowHandle::AppKitNsView(window.specific.cocoa) ParentWindowHandle::AppKitNsView(window.specific.cocoa)
} else if api == CLAP_WINDOW_API_WIN32 { } else if api == CLAP_WINDOW_API_WIN32 {
ParentWindowHandle::AppKitNsView(window.specific.win32) ParentWindowHandle::Win32Hwnd(window.specific.win32)
} else { } else {
nih_debug_assert_failure!("Host passed an invalid API"); nih_debug_assert_failure!("Host passed an invalid API");
return false; return false;