From 62e17bf0e180ec97aa227f142fc3274602aa554f 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)