diff options
author | Rangi <35663410+Rangi42@users.noreply.github.com> | 2018-09-01 20:58:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-01 20:58:23 -0400 |
commit | 963026695da30e7eaca8396f8624730d8d556c6e (patch) | |
tree | 5b34737d7050f39e90793236e70bd3033579bbf7 /macros | |
parent | 83b5aa356fcb0fac1363730200e7ebbc8a8b43f3 (diff) | |
parent | 075a3bcad0ad9cffbe3c21e9a7514b631a3749c1 (diff) |
Merge pull request #560 from Rangi42/master
Fix #537: Palettes generated from PNGs use .gbcpal directly.
Diffstat (limited to 'macros')
-rw-r--r-- | macros/gfx.asm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/macros/gfx.asm b/macros/gfx.asm index ff07ba468..2753373e0 100644 --- a/macros/gfx.asm +++ b/macros/gfx.asm @@ -17,3 +17,8 @@ color EQUS "+ PAL_COLOR_SIZE *" tiles EQUS "* LEN_2BPP_TILE" tile EQUS "+ LEN_2BPP_TILE *" + +; extracts the middle two colors from a 2bpp binary palette +; example usage: +; INCBIN "foo.gbcpal", middle_colors +middle_colors EQUS "PAL_COLOR_SIZE, PAL_COLOR_SIZE * 2" |