1
0
Fork 0

Codechange: Make INVALID_TE_ID a TextEffectID instead of a TextEffectMode.

Type-correctness?
pull/11277/head
Peter Nelson 2023-09-09 16:38:59 +01:00
parent d2268fcb7a
commit 150ba58a0a
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
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);