1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix for DropShadower when a desktop scale factor is in use.

This commit is contained in:
jules 2014-01-25 12:10:35 +00:00
parent 5d8edc2b9d
commit 670a40f05b

View file

@ -55,6 +55,14 @@ public:
repaint(); // (needed for correct repainting)
}
float getDesktopScaleFactor() const override
{
if (target != nullptr)
return target->getDesktopScaleFactor();
return Component::getDesktopScaleFactor();
}
private:
WeakReference<Component> target;
DropShadow shadow;