clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit 337fd09ac51b27a1b6db7cbe00be86be06c4bade
parent df99f4d0758f1eb7ede5cf5fd532ceef2feb71d3
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date:   Fri, 10 Sep 2021 18:05:07 +0200

Fix embedding inside bitwig

Diffstat:
Mexamples/plugins/gui/application.cc | 3+++
Mexamples/plugins/qml/clap/Knob.qml | 1-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/examples/plugins/gui/application.cc b/examples/plugins/gui/application.cc @@ -133,6 +133,7 @@ void Application::onMessage(const clap::RemoteChannel::Message &msg) { #ifdef Q_OS_LINUX _hostWindow.reset(QWindow::fromWinId(rq.window)); _quickView->setParent(_hostWindow.get()); + _quickView->show(); sync(); rp.succeed = true; #endif @@ -149,6 +150,7 @@ void Application::onMessage(const clap::RemoteChannel::Message &msg) { #ifdef Q_OS_WIN hostWindow_.reset(QWindow::fromWinId(rq.hwnd)); quickView_->setParent(hostWindow_.get()); + sync(); rp.succeed = true; #endif @@ -165,6 +167,7 @@ void Application::onMessage(const clap::RemoteChannel::Message &msg) { #ifdef Q_OS_MACOS hostWindow_.reset(QWindow::fromWinId(rq.nsView)); quickView_->setParent(hostWindow_.get()); + sync(); rp.succeed = true; #endif diff --git a/examples/plugins/qml/clap/Knob.qml b/examples/plugins/qml/clap/Knob.qml @@ -108,7 +108,6 @@ Canvas { var finalValueAngle = (param.normalizedFinalValue - param.normalizedValue) * ringAngle; ctx.arc(0, 0, size / 2, 0, finalValueAngle, finalValueAngle < 0); ctx.arc(0, 0, size / 2 - size * modulationMargin, finalValueAngle, 0, finalValueAngle > 0); - //ctx.arc(0, 0, size / 2, finalValueAngle, 0, true); ctx.fill(); ctx.restore();