Codechange: Make INVALID_TE_ID a TextEffectID instead of a TextEffectMode.

Type-correctness?
This commit is contained in:
Peter Nelson 2023-09-09 16:38:59 +01:00 committed by PeterN
parent 3c61c642a9
commit f6939d6c4d
1 changed files with 2 additions and 2 deletions

View File

@ -20,12 +20,12 @@
enum TextEffectMode {
TE_RISING, ///< Make the text effect slowly go upwards
TE_STATIC, ///< Keep the text effect static
INVALID_TE_ID = 0xFFFF,
};
typedef size_t TextEffectID;
static const TextEffectID INVALID_TE_ID = UINT16_MAX;
TextEffectID AddTextEffect(StringID msg, int x, int y, uint8_t duration, TextEffectMode mode);
void InitTextEffects();
void DrawTextEffects(DrawPixelInfo *dpi);