From d6b67f67869cbe7d34d861e29166be01f750004d Mon Sep 17 00:00:00 2001 From: George Reales Date: Mon, 13 Sep 2021 21:32:17 +0200 Subject: [PATCH] Update PluginEditor.cpp Fixed plugin version repaint issue using wrong assets on Hi-DPI displays --- Source/PluginEditor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index a401066..693d173 100755 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -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);