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:
parent
5d8edc2b9d
commit
670a40f05b
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue