mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-28 15:53:51 +01:00
Style: adds Cpp11BracedListStyle: Block
This commit is contained in:
@@ -221,11 +221,11 @@ void ffParseDisplayJsonObject(FFDisplayOptions* options, yyjson_val* module) {
|
||||
} else {
|
||||
int value;
|
||||
const char* error = ffJsonConfigParseEnum(val, &value, (FFKeyValuePair[]) {
|
||||
{"none", FF_DISPLAY_COMPACT_TYPE_NONE},
|
||||
{"original", FF_DISPLAY_COMPACT_TYPE_ORIGINAL_BIT},
|
||||
{"scaled", FF_DISPLAY_COMPACT_TYPE_SCALED_BIT},
|
||||
{"original-with-refresh-rate", FF_DISPLAY_COMPACT_TYPE_ORIGINAL_BIT | FF_DISPLAY_COMPACT_TYPE_REFRESH_RATE_BIT},
|
||||
{"scaled-with-refresh-rate", FF_DISPLAY_COMPACT_TYPE_SCALED_BIT | FF_DISPLAY_COMPACT_TYPE_REFRESH_RATE_BIT},
|
||||
{ "none", FF_DISPLAY_COMPACT_TYPE_NONE },
|
||||
{ "original", FF_DISPLAY_COMPACT_TYPE_ORIGINAL_BIT },
|
||||
{ "scaled", FF_DISPLAY_COMPACT_TYPE_SCALED_BIT },
|
||||
{ "original-with-refresh-rate", FF_DISPLAY_COMPACT_TYPE_ORIGINAL_BIT | FF_DISPLAY_COMPACT_TYPE_REFRESH_RATE_BIT },
|
||||
{ "scaled-with-refresh-rate", FF_DISPLAY_COMPACT_TYPE_SCALED_BIT | FF_DISPLAY_COMPACT_TYPE_REFRESH_RATE_BIT },
|
||||
{},
|
||||
});
|
||||
if (error) {
|
||||
@@ -248,9 +248,9 @@ void ffParseDisplayJsonObject(FFDisplayOptions* options, yyjson_val* module) {
|
||||
} else {
|
||||
int value;
|
||||
const char* error = ffJsonConfigParseEnum(val, &value, (FFKeyValuePair[]) {
|
||||
{"asc", FF_DISPLAY_ORDER_ASC},
|
||||
{"desc", FF_DISPLAY_ORDER_DESC},
|
||||
{"none", FF_DISPLAY_ORDER_NONE},
|
||||
{ "asc", FF_DISPLAY_ORDER_ASC },
|
||||
{ "desc", FF_DISPLAY_ORDER_DESC },
|
||||
{ "none", FF_DISPLAY_ORDER_NONE },
|
||||
{},
|
||||
});
|
||||
if (error) {
|
||||
@@ -428,30 +428,30 @@ FFModuleBaseInfo ffDisplayModuleInfo = {
|
||||
.generateJsonResult = (void*) ffGenerateDisplayJsonResult,
|
||||
.generateJsonConfig = (void*) ffGenerateDisplayJsonConfig,
|
||||
.formatArgs = FF_FORMAT_ARG_LIST(((FFModuleFormatArg[]) {
|
||||
{"Screen configured width (in pixels)", "width"},
|
||||
{"Screen configured height (in pixels)", "height"},
|
||||
{"Screen configured refresh rate (in Hz)", "refresh-rate"},
|
||||
{"Screen scaled width (in pixels)", "scaled-width"},
|
||||
{"Screen scaled height (in pixels)", "scaled-height"},
|
||||
{"Screen name", "name"},
|
||||
{"Screen type (Built-in or External)", "type"},
|
||||
{"Screen rotation (in degrees)", "rotation"},
|
||||
{"True if being the primary screen", "is-primary"},
|
||||
{"Screen physical width (in millimeters)", "physical-width"},
|
||||
{"Screen physical height (in millimeters)", "physical-height"},
|
||||
{"Physical diagonal length in inches", "inch"},
|
||||
{"Pixels per inch (PPI)", "ppi"},
|
||||
{"Bits per color channel", "bit-depth"},
|
||||
{"True if high dynamic range (HDR) mode is enabled", "hdr-enabled"},
|
||||
{"Year of manufacturing", "manufacture-year"},
|
||||
{"Nth week of manufacturing in the year", "manufacture-week"},
|
||||
{"Serial number", "serial"},
|
||||
{"The platform API used when detecting the display", "platform-api"},
|
||||
{"True if the display is HDR compatible", "hdr-compatible"},
|
||||
{"HiDPI scale factor", "scale-factor"},
|
||||
{"Screen preferred width (in pixels)", "preferred-width"},
|
||||
{"Screen preferred height (in pixels)", "preferred-height"},
|
||||
{"Screen preferred refresh rate (in Hz)", "preferred-refresh-rate"},
|
||||
{"DPI", "dpi"},
|
||||
{ "Screen configured width (in pixels)", "width" },
|
||||
{ "Screen configured height (in pixels)", "height" },
|
||||
{ "Screen configured refresh rate (in Hz)", "refresh-rate" },
|
||||
{ "Screen scaled width (in pixels)", "scaled-width" },
|
||||
{ "Screen scaled height (in pixels)", "scaled-height" },
|
||||
{ "Screen name", "name" },
|
||||
{ "Screen type (Built-in or External)", "type" },
|
||||
{ "Screen rotation (in degrees)", "rotation" },
|
||||
{ "True if being the primary screen", "is-primary" },
|
||||
{ "Screen physical width (in millimeters)", "physical-width" },
|
||||
{ "Screen physical height (in millimeters)", "physical-height" },
|
||||
{ "Physical diagonal length in inches", "inch" },
|
||||
{ "Pixels per inch (PPI)", "ppi" },
|
||||
{ "Bits per color channel", "bit-depth" },
|
||||
{ "True if high dynamic range (HDR) mode is enabled", "hdr-enabled" },
|
||||
{ "Year of manufacturing", "manufacture-year" },
|
||||
{ "Nth week of manufacturing in the year", "manufacture-week" },
|
||||
{ "Serial number", "serial" },
|
||||
{ "The platform API used when detecting the display", "platform-api" },
|
||||
{ "True if the display is HDR compatible", "hdr-compatible" },
|
||||
{ "HiDPI scale factor", "scale-factor" },
|
||||
{ "Screen preferred width (in pixels)", "preferred-width" },
|
||||
{ "Screen preferred height (in pixels)", "preferred-height" },
|
||||
{ "Screen preferred refresh rate (in Hz)", "preferred-refresh-rate" },
|
||||
{ "DPI", "dpi" },
|
||||
}))
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user