Display: print display type

This commit is contained in:
李通洲
2023-09-20 16:00:27 +08:00
parent 64615e635f
commit 576fcd7d3d
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -19,6 +19,7 @@ Features:
* Support Apple Silicon CPU frequency detection (CPU, macOS)
* Support user login time detection (Users)
* Support winget package manager detection, guarded behind `--allow-slow-operations` (Packages, Windows)
* Print monitor type (built-in or external) (Display)
Bugfixes:
* Fix fastfetch hanging in specific environment (#561)
+3
View File
@@ -85,6 +85,9 @@ void ffPrintDisplay(FFDisplayOptions* options)
result->scaledHeight > 0 && result->scaledHeight != result->height)
printf(" (as %ix%i)", result->scaledWidth, result->scaledHeight);
if(result->type != FF_DISPLAY_TYPE_UNKNOWN)
fputs(result->type == FF_DISPLAY_TYPE_BUILTIN ? " [Built-in]" : " [External]", stdout);
if(moduleIndex > 0 && result->primary)
printf(" *");