From d13f39dce54c18632210cae648bf458bc3e02f5b Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 21 Jul 2021 20:45:04 +0200 Subject: [PATCH] Don't check result on IPlugView::onSize() Melda plugins always return `kResultFalse`, so we should just assume the resize succeeds. --- src/wine-host/bridges/vst3.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wine-host/bridges/vst3.cpp b/src/wine-host/bridges/vst3.cpp index 71eb5017..2efc6e64 100644 --- a/src/wine-host/bridges/vst3.cpp +++ b/src/wine-host/bridges/vst3.cpp @@ -865,7 +865,10 @@ void Vst3Bridge::run() { // Also resize our wrapper window if the plugin agreed to // the new size - if (result == Steinberg::kResultOk && instance.editor) { + // NOTE: MeldaProduction plugins return `kResultFalse` even + // if they accept the resize, so we shouldn't check + // the result here + if (instance.editor) { instance.editor->resize(request.new_size.getWidth(), request.new_size.getHeight()); }