From 1237b8c831c0e8018d0cf5f8dac5af687ae52c84 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 23 Oct 2019 11:41:03 +0100 Subject: [PATCH] Fixed an issue causing ComponentAnimator ProxyComponent to be blurry when transformed --- modules/juce_gui_basics/layout/juce_ComponentAnimator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/layout/juce_ComponentAnimator.cpp b/modules/juce_gui_basics/layout/juce_ComponentAnimator.cpp index bc58337c62..43938e31da 100644 --- a/modules/juce_gui_basics/layout/juce_ComponentAnimator.cpp +++ b/modules/juce_gui_basics/layout/juce_ComponentAnimator.cpp @@ -159,7 +159,8 @@ public: else jassertfalse; // seem to be trying to animate a component that's not visible.. - auto scale = (float) Desktop::getInstance().getDisplays().findDisplayForRect (getScreenBounds()).scale; + auto scale = (float) Desktop::getInstance().getDisplays().findDisplayForRect (getScreenBounds()).scale + * Component::getApproximateScaleFactorForComponent (&c); image = c.createComponentSnapshot (c.getLocalBounds(), false, scale);