diff --git a/src/osx/cocoa/taskbar.mm b/src/osx/cocoa/taskbar.mm index 04c574dc82..b3966549d5 100644 --- a/src/osx/cocoa/taskbar.mm +++ b/src/osx/cocoa/taskbar.mm @@ -40,6 +40,8 @@ class wxTaskBarIconWindow : public wxTopLevelWindow public: wxTaskBarIconWindow(wxTaskBarIconImpl *impl); + double GetContentScaleFactor() const wxOVERRIDE; + void OnMenuEvent(wxCommandEvent& event); void OnUpdateUIEvent(wxUpdateUIEvent& event); @@ -426,6 +428,13 @@ wxTaskBarIconWindow::wxTaskBarIconWindow(wxTaskBarIconImpl *impl) { } +double wxTaskBarIconWindow::GetContentScaleFactor() const +{ + // We don't have any real window here, so use the main screen scale, which + // should be appropriate for dock/status icons. + return wxOSXGetMainScreenContentScaleFactor(); +} + void wxTaskBarIconWindow::OnMenuEvent(wxCommandEvent& event) { m_impl->GetTaskBarIcon()->ProcessEvent(event);