# HG changeset patch # User Peter Nelson # Date 2023-09-09 15:40:59 # Node ID b7b75d479ece15b4fd27d2c3c3a5d2899883d3c6 # Parent 63e746bef734bfada813bec6b1d531c295030a1b 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. diff --git a/src/texteff.hpp b/src/texteff.hpp --- a/src/texteff.hpp +++ b/src/texteff.hpp @@ -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;