mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-08-27 04:37:41 +00:00
Add a renderer selection option for macOS
There are numerous conflicting reports about which Mac renderer works best (even on the same systems!). I give up, just let the users figure it out.
This commit is contained in:
@@ -51,6 +51,13 @@ SystemProperties::SystemProperties()
|
||||
isRunningWayland = WMUtils::isRunningWayland();
|
||||
isRunningXWayland = isRunningWayland && QGuiApplication::platformName() == "xcb";
|
||||
usesMaterial3Theme = QLibraryInfo::version() >= QVersionNumber(6, 5, 0);
|
||||
|
||||
#ifdef Q_OS_DARWIN
|
||||
isDarwin = true;
|
||||
#else
|
||||
isDarwin = false;
|
||||
#endif
|
||||
|
||||
QString nativeArch = QSysInfo::currentCpuArchitecture();
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
|
||||
@@ -19,6 +19,7 @@ public:
|
||||
Q_PROPERTY(bool isRunningWayland MEMBER isRunningWayland CONSTANT)
|
||||
Q_PROPERTY(bool isRunningXWayland MEMBER isRunningXWayland CONSTANT)
|
||||
Q_PROPERTY(bool isWow64 MEMBER isWow64 CONSTANT)
|
||||
Q_PROPERTY(bool isDarwin MEMBER isDarwin CONSTANT)
|
||||
Q_PROPERTY(QString friendlyNativeArchName MEMBER friendlyNativeArchName CONSTANT)
|
||||
Q_PROPERTY(bool hasDesktopEnvironment MEMBER hasDesktopEnvironment CONSTANT)
|
||||
Q_PROPERTY(bool hasBrowser MEMBER hasBrowser CONSTANT)
|
||||
@@ -66,6 +67,7 @@ private:
|
||||
bool hasDiscordIntegration;
|
||||
QString versionString;
|
||||
bool usesMaterial3Theme;
|
||||
bool isDarwin;
|
||||
|
||||
// Properties only set if startAsyncLoad() is called
|
||||
bool hasHardwareAcceleration;
|
||||
|
||||
Reference in New Issue
Block a user