diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2020-08-30 19:43:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-30 19:43:23 -0500 |
| commit | 0a63340c205ab21dab42ad616c67868c41ae5c06 (patch) | |
| tree | a4b70eb6f4dc64def9fecfb00ab21e93b89977c2 /Source/Core/DolphinQt/Config/ControllersWindow.cpp | |
| parent | 75b4f70e5eaf50e5c2a05633d2bf91d0b99c25a1 (diff) | |
| parent | 24e8ed8e2761ac991057ac0f808c3d2bd913fe5b (diff) | |
Merge pull request #9037 from shuffle2/code-cleanup
Code cleanup
Diffstat (limited to 'Source/Core/DolphinQt/Config/ControllersWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/ControllersWindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Config/ControllersWindow.cpp b/Source/Core/DolphinQt/Config/ControllersWindow.cpp index 2f3d03ed43..82e6da599b 100644 --- a/Source/Core/DolphinQt/Config/ControllersWindow.cpp +++ b/Source/Core/DolphinQt/Config/ControllersWindow.cpp @@ -131,9 +131,12 @@ static int GetLayoutHorizontalSpacing(const QGridLayout* layout) // Docs claim this is deprecated, but on macOS with Qt 5.8 this is the only one that actually // works. float pixel_ratio = QGuiApplication::primaryScreen()->devicePixelRatio(); +#ifdef __APPLE__ + // TODO is this still required? hspacing = pixel_ratio * style->pixelMetric(QStyle::PM_DefaultLayoutSpacing); if (hspacing >= 0) return hspacing; +#endif // Ripped from qtbase/src/widgets/styles/qcommonstyle.cpp return pixel_ratio * 6; |
