diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-08-31 21:39:17 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-08-31 21:39:17 -0400 |
commit | 36b21b39d8854ea4d808146938a75233b003f2a7 (patch) | |
tree | fcd54aa0fe5e795fd95cfe1d71ac59375b278cfe /macros/gfx.asm | |
parent | a71b28e5b724564fe19f329f5cbb474f8b111acb (diff) |
Fix #537: Palettes generated from PNGs use .gbcpal directly.
This avoids overwriting a .pal file from a .png with the same name.
It also prevents people from trying to edit generated .pal files.
Diffstat (limited to 'macros/gfx.asm')
-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" |