gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 0cf82e544c72bfcf92f9542bdc7797ca10960f53 parent ee24b4f31a85f089a8f2efc87eb77f84177521ae Author: Toxa <untoxa@mail.ru> Date: Wed, 28 Feb 2024 19:22:38 +0300 CGB: remove useless left shift zero bits Diffstat:
| M | gbdk-lib/include/gb/cgb.h | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gbdk-lib/include/gb/cgb.h b/gbdk-lib/include/gb/cgb.h @@ -30,7 +30,7 @@ @see set_bkg_palette(), set_sprite_palette(), RGB8(), RGBHTML() */ -#define RGB(r, g, b) ((uint16_t)((((b) & 0x1f) << 10) | ((uint16_t)(((g) & 0x1f) << 5)) | (((r) & 0x1f) << 0))) +#define RGB(r, g, b) ((uint16_t)((((b) & 0x1f) << 10) | ((uint16_t)(((g) & 0x1f) << 5)) | ((r) & 0x1f))) /** Macro to create a CGB palette color entry out of 8-bit color components.
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.