diff options
Diffstat (limited to 'src/modules/display/option.h')
| -rw-r--r-- | src/modules/display/option.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/modules/display/option.h b/src/modules/display/option.h new file mode 100644 index 0000000..1ae73a4 --- /dev/null +++ b/src/modules/display/option.h @@ -0,0 +1,27 @@ +#pragma once + +#include "common/option.h" + +typedef enum FF_A_PACKED FFDisplayCompactType { + FF_DISPLAY_COMPACT_TYPE_NONE = 0, + FF_DISPLAY_COMPACT_TYPE_ORIGINAL_BIT = 1 << 0, + FF_DISPLAY_COMPACT_TYPE_SCALED_BIT = 1 << 1, + FF_DISPLAY_COMPACT_TYPE_REFRESH_RATE_BIT = 1 << 2, + FF_DISPLAY_COMPACT_TYPE_UNSIGNED = UINT8_MAX, +} FFDisplayCompactType; + +typedef enum FF_A_PACKED FFDisplayOrder { + FF_DISPLAY_ORDER_NONE, + FF_DISPLAY_ORDER_ASC, + FF_DISPLAY_ORDER_DESC, +} FFDisplayOrder; + +typedef struct FFDisplayOptions { + FFModuleArgs moduleArgs; + + FFDisplayCompactType compactType; + bool preciseRefreshRate; + FFDisplayOrder order; +} FFDisplayOptions; + +static_assert(sizeof(FFDisplayOptions) <= FF_OPTION_MAX_SIZE, "FFDisplayOptions size exceeds maximum allowed size"); |