diff options
author | Kurausukun <lord.uber1@gmail.com> | 2020-10-23 22:07:30 -0400 |
---|---|---|
committer | Kurausukun <lord.uber1@gmail.com> | 2020-10-23 22:07:30 -0400 |
commit | 44c2d15ca9f3b1b758fc70acdf6d0cf1cf74cf5f (patch) | |
tree | 97f18214fa79382ad4e80944fa282a68fd5e7287 /include | |
parent | 627853a2bfbc3ce87f3b48b2b80acd10172a0212 (diff) |
re-match sub_81C79BC (from #1177)
also re-define RBG macros
Diffstat (limited to 'include')
-rw-r--r-- | include/constants/rgb.h | 4 | ||||
-rw-r--r-- | include/pokenav.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/constants/rgb.h b/include/constants/rgb.h index 80d951f4b..1896250d2 100644 --- a/include/constants/rgb.h +++ b/include/constants/rgb.h @@ -1,6 +1,10 @@ #ifndef GUARD_RGB_H #define GUARD_RGB_H +#define GET_R(color) ((color) & 0x1F) +#define GET_G(color) (((color) >> 5) & 0x1F) +#define GET_B(color) (((color) >> 10) & 0x1F) + #define RGB(r, g, b) ((r) | ((g) << 5) | ((b) << 10)) #define RGB2(r, g, b) (((b) << 10) | ((g) << 5) | (r)) #define _RGB(r, g, b) ((((b) & 0x1F) << 10) + (((g) & 0x1F) << 5) + ((r) & 0x1F)) diff --git a/include/pokenav.h b/include/pokenav.h index ac916f3ba..ed4e5a906 100644 --- a/include/pokenav.h +++ b/include/pokenav.h @@ -313,7 +313,7 @@ bool32 WaitForHelpBar(void); void sub_81C78A0(void); bool32 MainMenuLoopedTaskIsBusy(void); void sub_81C7FDC(void); -void sub_81C79BC(const u16 *a0, const u16 *a1, u32 a2, u32 a3, u32 a4, u16 *a5); +void sub_81C79BC(const u16 *a0, const u16 *a1, int a2, int a3, int a4, u16 *palette); void sub_81C7B40(void); struct Sprite *PauseSpinningPokenavSprite(void); void ResumeSpinningPokenavSprite(void); |