From bad5d0ace6190196a1a7d476a37505095fec8429 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 6 Feb 2022 13:33:28 +0100 Subject: [PATCH] Use a patched baseview with fixed window visual Otherwise trying to embed the GUI in REAPER will panic. https://github.com/RustAudio/baseview/pull/113 --- Cargo.lock | 2 +- Cargo.toml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index bf7f0f3f..0c19a2c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -62,7 +62,7 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" [[package]] name = "baseview" version = "0.1.0" -source = "git+https://github.com/RustAudio/baseview.git#004065e9a43e79751040879c572d95b9b63e0edc" +source = "git+https://github.com/prokopyl/baseview.git?rev=6f7068e4f3391b7f977f8595619d4fe2c1dfd84f#6f7068e4f3391b7f977f8595619d4fe2c1dfd84f" dependencies = [ "cocoa", "core-foundation", diff --git a/Cargo.toml b/Cargo.toml index eb1bc03b..14920524 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,3 +42,7 @@ default = [] # Enabling this feature will cause the plugin to terminate when allocations # occur in the processing function while compiling in debug mode. assert_process_allocs = ["assert_no_alloc"] + +# Upstream baseview doesn't work in REAPER because of mismatching visuals +[patch."https://github.com/RustAudio/baseview.git"] +baseview = { git = "https://github.com/prokopyl/baseview.git", rev = "6f7068e4f3391b7f977f8595619d4fe2c1dfd84f" }