Global: pack all enums and make flag enums unsigned

This commit is contained in:
李通洲
2024-11-14 10:04:57 +08:00
parent e821a99873
commit 97e1b987dd
54 changed files with 100 additions and 73 deletions
+1 -1
View File
@@ -301,7 +301,7 @@ void ffInitBatteryOptions(FFBatteryOptions* options)
ffOptionInitModuleArg(&options->moduleArgs, "");
options->temp = false;
options->tempConfig = (FFColorRangeConfig) { 60, 80 };
options->percent = (FFColorRangeConfig) { 50, 20 };
options->percent = (FFPercentageModuleConfig) { 50, 20 };
#ifdef _WIN32
options->useSetupApi = false;
+1 -1
View File
@@ -12,7 +12,7 @@ typedef struct FFBatteryOptions
bool temp;
FFColorRangeConfig tempConfig;
FFColorRangeConfig percent;
FFPercentageModuleConfig percent;
#ifdef _WIN32
bool useSetupApi;