1
0
Fork 0
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:
ed 2019-10-09 16:54:29 +01:00
parent 22aa9bc682
commit 3cbc4ec0ae

View file

@ -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);