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

View file

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