Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VST3 Client: Ensure editor scale is correct immediately after creation
This fixes a bug where selecting "Always on top" in the plugin editor window in Cubase 11 on Windows 11 on a display with > 100% scale would cause the editor to display with the wrong scale factor. It seems that Cubase calls removed() then attached() on the plugin view, destroying and recreating the editor wrapper component. The editor opened with 100% scale, but requests from the host to set the "real" scale factor were ignored because the JUCE wrapper thought that the requested scale had already been applied. Applying the cached scale factor directly after constructing the editor keeps everything in a consistent state, and seems to resolve the issue.
- Loading branch information