From ce9142186e22ad5491ee5b3d7474af8b71e0b80a Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 2 Jun 2022 00:54:15 +0200 Subject: [PATCH] Remove the win32-dpi-aware CLAP feature on Windows I don't think this is correct, since none of the GUI adapters are able to communicate the detected DPI back to NIH-plug. --- src/wrapper/clap/descriptor.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/wrapper/clap/descriptor.rs b/src/wrapper/clap/descriptor.rs index db027574..4f2d5e41 100644 --- a/src/wrapper/clap/descriptor.rs +++ b/src/wrapper/clap/descriptor.rs @@ -61,15 +61,6 @@ impl Default for PluginDescriptor

{ }; // The keyword list is an environ-like list of char pointers terminated by a null pointer. - // On Windows `win32-dpi-aware` is a special value informing the host that the plugin is - // DPI-aware. - // TODO: Is this actually what we want? What happens if we don't add it? If this means that - // we need to do our own DPI handling instead of the host passing a scale then we - // don't want that of course. - #[cfg(target_os = "windows")] - descriptor - .clap_features - .push(CString::new("win32-dpi-aware").unwrap()); let mut clap_features_ptrs: Vec<*const c_char> = descriptor .clap_features .iter()