Skip to content

Commit

Permalink
burn_pal.h, add pal6bit()
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkc64 committed Feb 14, 2025
1 parent bb77ee5 commit 2b0ac23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/burn/burn_pal.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void BurnPaletteWrite_BBGGGRRR_inverted(INT32 offset);
void BurnPaletteWrite_RRRGGGBB_inverted(INT32 offset);

// palette expansion macros

#define pal6bit(x) ((((x) & 0x3f)<<2)|(((x) & 0x3f) >> 4))
#define pal5bit(x) ((((x) & 0x1f)<<3)|(((x) & 0x1f) >> 2))
#define pal4bit(x) ((((x) & 0x0f)<<4)|(((x) & 0x0f) << 4))
#define pal3bit(x) ((((x) & 0x07)<<5)|(((x) & 0x07) << 2)|(((x) & 0x07) >> 1))
Expand Down

0 comments on commit 2b0ac23

Please sign in to comment.