Browse Source

Fix initial vst3 window size on macOS

tags/22.02
falkTX 3 years ago
parent
commit
7fe6bff959
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      dpf
  2. +2
    -2
      src/CardinalUI.cpp

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit d48c7ffc0fe7fe1d0515b9737a3af64c58acdaf1
Subproject commit d0413dfbd6580fcb89dcbee11cad9319975474cc

+ 2
- 2
src/CardinalUI.cpp View File

@@ -277,9 +277,9 @@ public:

const double scaleFactor = getScaleFactor();

setGeometryConstraints(648, 538);
setGeometryConstraints(648 * scaleFactor, 538 * scaleFactor);

if (scaleFactor != 1)
if (scaleFactor != 1.0)
setSize(1228 * scaleFactor, 666 * scaleFactor);

rack::contextSet(context);


Loading…
Cancel
Save