From 6c10e2fc7c18481582fa6ff4cf619de1be43efa4 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 25 Jul 2023 13:33:02 +0200 Subject: [PATCH] Fix carla-vst GUI for macOS retina displays Signed-off-by: falkTX --- source/plugin/ui_launcher.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/plugin/ui_launcher.cpp b/source/plugin/ui_launcher.cpp index 744526ce2..4541573dd 100644 --- a/source/plugin/ui_launcher.cpp +++ b/source/plugin/ui_launcher.cpp @@ -158,6 +158,11 @@ void getUILauncherSize(CarlaUILauncher* const ui, VstRect* const rect) { rect->right = ui->window.getWidth(); rect->bottom = ui->window.getHeight(); + #ifdef DISTRHO_OS_MAC + const double scaleFactor = ui->window.getScaleFactor(); + rect->right /= scaleFactor; + rect->bottom /= scaleFactor; + #endif } void idleUILauncher(CarlaUILauncher* const ui)