Codechange: Make INVALID_TE_ID a TextEffectID instead of a TextEffectMode.

Type-correctness?
pull/611/head
Peter Nelson 9 months ago committed by PeterN
parent 3c61c642a9
commit f6939d6c4d

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

Loading…
Cancel
Save