mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
VST3: Fixed an issue in checkSizeConstraint() when the editor has a scale factor applied
This commit is contained in:
parent
22aa9bc682
commit
3cbc4ec0ae
1 changed files with 6 additions and 4 deletions
|
|
@ -1199,10 +1199,12 @@ private:
|
|||
{
|
||||
if (auto* constrainer = editor->getConstrainer())
|
||||
{
|
||||
auto minW = (double) constrainer->getMinimumWidth();
|
||||
auto maxW = (double) constrainer->getMaximumWidth();
|
||||
auto minH = (double) constrainer->getMinimumHeight();
|
||||
auto maxH = (double) constrainer->getMaximumHeight();
|
||||
auto scale = editor->getTransform().getScaleFactor();
|
||||
|
||||
auto minW = (double) (constrainer->getMinimumWidth() * scale);
|
||||
auto maxW = (double) (constrainer->getMaximumWidth() * scale);
|
||||
auto minH = (double) (constrainer->getMinimumHeight() * scale);
|
||||
auto maxH = (double) (constrainer->getMaximumHeight() * scale);
|
||||
|
||||
auto width = (double) (rectToCheck->right - rectToCheck->left);
|
||||
auto height = (double) (rectToCheck->bottom - rectToCheck->top);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue