Skip to content

Commit bcb78ff

Browse files
committed
macOS tooltip scaling fix
1 parent 44c208f commit bcb78ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Source/PluginEditor.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ class CalloutArea final : public Component
7474

7575
float getDesktopScaleFactor() const override
7676
{
77+
#if JUCE_MAC
78+
return 1.0f; // macOS deals with this for us, otherwise this breaks with multi-display setups
79+
#endif
7780
return getApproximateScaleFactorForComponent(target);
7881
};
7982

@@ -87,8 +90,8 @@ PluginEditor::PluginEditor(PluginProcessor& p)
8790
, pd(&p)
8891
, sidebar(std::make_unique<Sidebar>(&p, this))
8992
, statusbar(std::make_unique<Statusbar>(&p, this))
90-
, openedDialog(nullptr)
9193
, nvgSurface(this)
94+
, openedDialog(nullptr)
9295
, pluginConstrainer(*getConstrainer())
9396
, tooltipWindow(nullptr, [](Component* c) {
9497
if (auto const* cnv = c->findParentComponentOfClass<Canvas>()) {

0 commit comments

Comments
 (0)