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
+2 -2
View File
@@ -5,7 +5,7 @@
#include "common/option.h"
#include "common/percent.h"
typedef enum FFSoundType
typedef enum __attribute__((__packed__)) FFSoundType
{
FF_SOUND_TYPE_MAIN,
FF_SOUND_TYPE_ACTIVE,
@@ -18,5 +18,5 @@ typedef struct FFSoundOptions
FFModuleArgs moduleArgs;
FFSoundType soundType;
FFColorRangeConfig percent;
FFPercentageModuleConfig percent;
} FFSoundOptions;
+1 -1
View File
@@ -253,7 +253,7 @@ void ffInitSoundOptions(FFSoundOptions* options)
ffOptionInitModuleArg(&options->moduleArgs, "");
options->soundType = FF_SOUND_TYPE_MAIN;
options->percent = (FFColorRangeConfig) { 80, 90 };
options->percent = (FFPercentageModuleConfig) { 80, 90 };
}
void ffDestroySoundOptions(FFSoundOptions* options)