2
0
Fork 0

Update PluginEditor.cpp

Fixed plugin version repaint issue using wrong assets on Hi-DPI displays
This commit is contained in:
George Reales 2021-09-13 21:32:17 +02:00
parent 903d1dd32e
commit d6b67f6786
1 changed files with 3 additions and 3 deletions

View File

@ -71,9 +71,9 @@ ObxdAudioProcessorEditor::ObxdAudioProcessorEditor (ObxdAudioProcessor& ownerFil
ScalableComponent::setScaleFactor(2.0f, isHighResolutionDisplay());
break;
}
repaint();
scaleFactorChanged();
//repaint();
}
@ -1325,7 +1325,7 @@ void ObxdAudioProcessorEditor::paint(Graphics& g)
if (newPhysicalPixelScaleFactor != processor.physicalPixelScaleFactor)
{
processor.physicalPixelScaleFactor = newPhysicalPixelScaleFactor;
//triggerAsyncUpdate();
scaleFactorChanged();
}
g.fillAll (Colours::black);