diff options
author | Explorer09 <explorer09@gmail.com> | 2024-04-18 22:18:40 +0800 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2024-04-20 19:36:00 +0200 |
commit | c2c2a70997a0bf40b0484af6d82c4d41d370d06d (patch) | |
tree | af1e89442ddadf21cebccd2d60705cc4258d2454 /MeterMode.h | |
parent | c167a2c4c514ffb1feb3b087060e0c0ee36578d1 (diff) |
Define MeterModeId to unsigned int and use it throughout
All uses of meter drawing "mode" numbers now have the type
`MeterModeId`, including the uses in structures and arrays.
`MeterModeId` is defined as `unsigned int`, as (currently) it doesn't
save any code size by defining it to any smaller type.
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
Diffstat (limited to 'MeterMode.h')
-rw-r--r-- | MeterMode.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MeterMode.h b/MeterMode.h index 98e6921e..fc5b7785 100644 --- a/MeterMode.h +++ b/MeterMode.h @@ -8,13 +8,15 @@ in the source distribution for its full text. */ -typedef enum { +enum MeterModeId_ { /* Meter mode 0 is reserved */ BAR_METERMODE = 1, TEXT_METERMODE, GRAPH_METERMODE, LED_METERMODE, LAST_METERMODE -} MeterModeId; +}; + +typedef unsigned int MeterModeId; #endif |