gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 1b0fe961398f0c69c3f6f466fd7e3d458afd6408 parent 4606981b81a5b140e8ebd635590852ac23012b0f Author: Toxa <untoxa@mail.ru> Date: Sun, 11 Jul 2021 19:37:13 +0300 DMG palette helper macro Diffstat:
| M | gbdk-lib/include/gb/gb.h | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/gbdk-lib/include/gb/gb.h b/gbdk-lib/include/gb/gb.h @@ -93,6 +93,16 @@ */ #define JOY_IFLAG 0x10U + +/* DMG Palettes */ +#define DMG_BLACK 0x03 +#define DMG_DARK_GRAY 0x02 +#define DMG_LITE_GRAY 0x01 +#define DMG_WHITE 0x00 +/** DMG palette helper macro. + */ +#define DMG_PALETTE(C0, C1, C2, C3) ((UBYTE)((((C3) & 0x03) << 6) | (((C2) & 0x03) << 4) | (((C1) & 0x03) << 2) | ((C0) & 0x03))) + /* Limits */ /** Width of the visible screen in pixels. */
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.