Browse Source

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

tags/2021-05-28
jules 12 years ago
parent
commit
670a40f05b
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      modules/juce_gui_basics/misc/juce_DropShadower.cpp

+ 8
- 0
modules/juce_gui_basics/misc/juce_DropShadower.cpp 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;


Loading…
Cancel
Save