From 6476ad1c5bf8424308a114ef11780730e324d249 Mon Sep 17 00:00:00 2001 From: daiqingshuang Date: Thu, 14 Aug 2025 17:58:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=84=E7=90=86=E9=9F=B3?= =?UTF-8?q?=E9=A2=91=E7=AA=97=E5=8F=A3=E5=A4=A7=E5=B0=8F=E7=9A=84=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E6=94=AF=E6=8C=81=E5=8A=A8=E6=80=81=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E6=8F=92=E4=BB=B6=E5=AE=BF=E4=B8=BB=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E5=B0=BA=E5=AF=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/src/vst2_host/src/vst2host.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/backend/src/vst2_host/src/vst2host.cpp b/src/backend/src/vst2_host/src/vst2host.cpp index a3c048f..f1c5c51 100644 --- a/src/backend/src/vst2_host/src/vst2host.cpp +++ b/src/backend/src/vst2_host/src/vst2host.cpp @@ -42,6 +42,14 @@ inline VstIntPtr VSTCALLBACK host_callback(AEffect* effect, case audioMasterGetInputLatency: case audioMasterGetOutputLatency: return 0; + case audioMasterSizeWindow: { + const auto width = static_cast(index); + const auto height = static_cast(value); + if (window_handle) { + glfwSetWindowSize(window_handle, width, height); + } + return 1; + } /* -------- 显示刷新 -------- */ case audioMasterUpdateDisplay: