# HG changeset patch # User Chris Cannam # Date 1595336518 -3600 # Node ID 199dbb3547d4c76f2faee8a1a16c875e13ac51c2 # Parent fe9a643b83bfc434b47c41e1c4281ab99ff05947 This function is now C-linkage (with pointers) for simplicity after we pulled it optionally out into a separate DLL diff -r fe9a643b83bf -r 199dbb3547d4 view/ViewManager.cpp --- a/view/ViewManager.cpp Thu Jun 18 13:45:11 2020 +0100 +++ b/view/ViewManager.cpp Tue Jul 21 14:01:58 2020 +0100 @@ -93,7 +93,7 @@ m_lightPalette.setColor(QPalette::Highlight, Qt::darkBlue); if (!OSReportsDarkThemeActive()) { int r, g, b; - if (OSQueryAccentColour(r, g, b)) { + if (OSQueryAccentColour(&r, &g, &b)) { m_lightPalette.setColor(QPalette::Highlight, QColor(r, g, b)); } } @@ -117,7 +117,7 @@ m_darkPalette.setColor(QPalette::Highlight, QColor(25, 130, 220)); if (OSReportsDarkThemeActive()) { int r, g, b; - if (OSQueryAccentColour(r, g, b)) { + if (OSQueryAccentColour(&r, &g, &b)) { m_darkPalette.setColor(QPalette::Highlight, QColor(r, g, b)); } }