From 24e50a3afc01acdacc9fa38524c4f606dde219df Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 9 Oct 2022 14:23:29 +0200 Subject: [PATCH] Rename get_win32_handle() to win32_handle() --- src/wine-host/bridges/clap.cpp | 2 +- src/wine-host/bridges/vst2.cpp | 2 +- src/wine-host/bridges/vst3.cpp | 2 +- src/wine-host/editor.cpp | 2 +- src/wine-host/editor.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wine-host/bridges/clap.cpp b/src/wine-host/bridges/clap.cpp index 82b7809d..f1ca2540 100644 --- a/src/wine-host/bridges/clap.cpp +++ b/src/wine-host/bridges/clap.cpp @@ -547,7 +547,7 @@ void ClapBridge::run() { const clap_window_t window{ .api = CLAP_WINDOW_API_WIN32, - .win32 = editor_instance.get_win32_handle()}; + .win32 = editor_instance.win32_handle()}; const bool result = gui->set_parent(plugin, &window); // Set the window's initial size according to what the diff --git a/src/wine-host/bridges/vst2.cpp b/src/wine-host/bridges/vst2.cpp index 2bf5b5f0..d486013d 100644 --- a/src/wine-host/bridges/vst2.cpp +++ b/src/wine-host/bridges/vst2.cpp @@ -745,7 +745,7 @@ intptr_t Vst2Bridge::dispatch_wrapper(AEffect* plugin, const intptr_t result = plugin->dispatcher(plugin, opcode, index, value, - editor_instance.get_win32_handle(), option); + editor_instance.win32_handle(), option); // Make sure the wrapper window has the correct initial size. The // plugin can later change this size using `audioMasterSizeWindow`. diff --git a/src/wine-host/bridges/vst3.cpp b/src/wine-host/bridges/vst3.cpp index 86ad33b9..e73908ab 100644 --- a/src/wine-host/bridges/vst3.cpp +++ b/src/wine-host/bridges/vst3.cpp @@ -793,7 +793,7 @@ void Vst3Bridge::run() { x11_handle); const tresult result = instance.plug_view_instance->plug_view->attached( - editor_instance.get_win32_handle(), + editor_instance.win32_handle(), type.c_str()); // Set the window's initial size according to what the diff --git a/src/wine-host/editor.cpp b/src/wine-host/editor.cpp index 685e51c3..84586205 100644 --- a/src/wine-host/editor.cpp +++ b/src/wine-host/editor.cpp @@ -755,7 +755,7 @@ void Editor::handle_x11_events() noexcept { } } -HWND Editor::get_win32_handle() const noexcept { +HWND Editor::win32_handle() const noexcept { return win32_window_.handle_; } diff --git a/src/wine-host/editor.h b/src/wine-host/editor.h index 93d975f2..60e362e4 100644 --- a/src/wine-host/editor.h +++ b/src/wine-host/editor.h @@ -211,7 +211,7 @@ class Editor { * Get the Win32 window handle so it can be passed to an `effEditOpen()` * call. */ - HWND get_win32_handle() const noexcept; + HWND win32_handle() const noexcept; /** * Returns `true` if the window manager supports the EWMH active window