mirror of
https://github.com/pret/pmd-red.git
synced 2026-09-27 03:18:13 -05:00
Merge pull request #428 from DizzyEggg/some_funcs
Some checks failed
GithubCI / build (push) Has been cancelled
Some checks failed
GithubCI / build (push) Has been cancelled
Decompile code_80035F0 and GroundMap_Select and GroundMap_SelectDungeon
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user