File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
src/detection/displayserver Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 2
2
#include "util/apple/cf_helpers.h"
3
3
#include "util/stringUtils.h"
4
4
#include "util/edidHelper.h"
5
+ #include "detection/os/os.h"
5
6
6
7
#include <stdlib.h>
7
8
#include <string.h>
@@ -194,7 +195,22 @@ void ffConnectDisplayServerImpl(FFDisplayServerResult* ds)
194
195
ffStrbufSetStatic (& ds -> wmPrettyName , "Quartz Compositor" );
195
196
}
196
197
}
197
- ffStrbufSetStatic (& ds -> dePrettyName , "Aqua" );
198
+
199
+ const FFOSResult * os = ffDetectOS ();
200
+
201
+ char * str_end ;
202
+ const char * version = os -> version .chars ;
203
+ unsigned long osNum = strtoul (version , & str_end , 10 );
204
+ if (str_end != version )
205
+ {
206
+ if (osNum >= 26 ) { // Tahoe
207
+ ffStrbufSetStatic (& ds -> dePrettyName , "Liquid Glass" );
208
+ } else if (osNum < 10 ) {
209
+ ffStrbufSetStatic (& ds -> dePrettyName , "Platinum" );
210
+ } else {
211
+ ffStrbufSetStatic (& ds -> dePrettyName , "Aqua" );
212
+ }
213
+ }
198
214
199
215
detectDisplays (ds );
200
216
}
You can’t perform that action at this time.
0 commit comments