diff options
author | Phlosioneer <mattmdrr2@gmail.com> | 2019-02-09 21:50:12 -0500 |
---|---|---|
committer | Phlosioneer <mattmdrr2@gmail.com> | 2019-02-09 21:50:12 -0500 |
commit | 37bea25b01be5cf970882e9b9f21a411fabcc4bf (patch) | |
tree | 6f428dbeab30fb194ebb98c9ef89943ea6486415 /include/palette.h | |
parent | 6f1d2b870c1426e7f405f3b3bc4ff2b9edb380e1 (diff) |
Name the possible return values of palette fading functions
Also replace implicit conversion from gPalette.active into a status with
if statements, to make the return value clear.
I've also added comments when the check is redundant.
Diffstat (limited to 'include/palette.h')
-rw-r--r-- | include/palette.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/palette.h b/include/palette.h index e24da3e00..84794afc9 100644 --- a/include/palette.h +++ b/include/palette.h @@ -9,6 +9,11 @@ #define PLTT_BUFFER_SIZE 0x200 #define PLTT_DECOMP_BUFFER_SIZE (PLTT_BUFFER_SIZE * 2) +#define PALETTE_FADE_STATUS_DELAY 2 +#define PALETTE_FADE_STATUS_ACTIVE 1 +#define PALETTE_FADE_STATUS_DONE 0 +#define PALETTE_FADE_STATUS_LOADING -1 + enum { FAST_FADE_IN_FROM_WHITE, |