Merge pull request #428 from DizzyEggg/some_funcs
Some checks failed
GithubCI / build (push) Has been cancelled

Decompile code_80035F0 and GroundMap_Select and GroundMap_SelectDungeon
This commit is contained in:
Seth Barberee
2025-07-16 13:52:00 -07:00
committed by GitHub
18 changed files with 928 additions and 2296 deletions

View File

@@ -26,4 +26,8 @@ typedef union RGB_Union
RGB separate;
} RGB_Union;
#define RGB_TO_GBA(r, g, b) RGB2(((u32)(r) & 0xF8) >> 3, ((g) & 0xF8) >> 3, ((b) & 0xF8) >> 3)
// Needed to match, functionally equivalent to the above.
#define RGB_TO_GBA2(r, g, b)(((u32)((b) & 0xF8) >> 2 << 9) | (((u32)(g) & 0xF8) >> 3 << 5) | (((u32)(r) & 0xF8) >> 3))
#endif // GUARD_RGB_H