VST3: Create the window with the plugin-returned initial size

Instead of creating the window as 128x128 and then resizing, create it
with the size requested by the plugin. Fixes Korg VST3 plugins.
This commit is contained in:
Asahi Lina
2025-05-22 14:05:14 +09:00
committed by Robbert van der Helm
parent b2db9cc0a6
commit 6f65613292
3 changed files with 14 additions and 5 deletions
+2 -1
View File
@@ -194,7 +194,8 @@ class Editor {
const Configuration& config,
Logger& logger,
const size_t parent_window_handle,
std::optional<fu2::unique_function<void()>> timer_proc = std::nullopt);
std::optional<fu2::unique_function<void()>> timer_proc = std::nullopt,
std::optional<Size> initial_size = std::nullopt);
/**
* Resize the `wrapper_window_` to this new size. We need to manually call