Skip to content

Commit 62e17bf

Browse files
committed
Fix carla-vst GUI for macOS retina displays
Signed-off-by: falkTX <[email protected]>
1 parent e96aab6 commit 62e17bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/plugin/ui_launcher.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ void getUILauncherSize(CarlaUILauncher* const ui, VstRect* const rect)
158158
{
159159
rect->right = ui->window.getWidth();
160160
rect->bottom = ui->window.getHeight();
161+
#ifdef DISTRHO_OS_MAC
162+
const double scaleFactor = ui->window.getScaleFactor();
163+
rect->right /= scaleFactor;
164+
rect->bottom /= scaleFactor;
165+
#endif
161166
}
162167

163168
void idleUILauncher(CarlaUILauncher* const ui)

0 commit comments

Comments
 (0)