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.
pull/611/head
Peter Nelson 9 months ago committed by PeterN
parent f6939d6c4d
commit f3b4f9d640

@ -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;

Loading…
Cancel
Save