Codechange: Reduce size of TextEffectMode and TextEffectID.

TextEffectID was promoted to size_t in #9235, when it was used in loops.
However since then the relevant code uses range-for or iterators instead.
This commit is contained in:
Peter Nelson 2023-09-09 16:40:59 +01:00 committed by PeterN
parent f6939d6c4d
commit f3b4f9d640
1 changed files with 2 additions and 2 deletions

View File

@ -17,12 +17,12 @@
/**
* Text effect modes.
*/
enum TextEffectMode {
enum TextEffectMode : uint8_t {
TE_RISING, ///< Make the text effect slowly go upwards
TE_STATIC, ///< Keep the text effect static
};
typedef size_t TextEffectID;
using TextEffectID = uint16_t;
static const TextEffectID INVALID_TE_ID = UINT16_MAX;