git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 212b185675a04f5c4c2f68603c28288ca45ff58f
parent af0e508a3b2fb9ea30fa118bcafc4e371db508dc
Author: Toxa <untoxa@mail.ru>
Date:   Thu,  9 Sep 2021 18:32:58 +0300

SMS/GG: fix flipping/palette/priority bits definition

Diffstat:
Mgbdk-lib/include/sms/sms.h16++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/gbdk-lib/include/sms/sms.h b/gbdk-lib/include/sms/sms.h @@ -66,10 +66,18 @@ */ #define M_NO_INTERP 0x08U -#define S_PALETTE 0x10U -#define S_FLIPX 0x20U -#define S_FLIPY 0x40U -#define S_PRIORITY 0x80U +/** If set the background tile will be flipped horizontally. + */ +#define S_FLIPX 0x02U +/** If set the background tile will be flipped vertically. + */ +#define S_FLIPY 0x04U +/** If set the background tile palette. + */ +#define S_PALETTE 0x08U +/** If set the background tile priority. + */ +#define S_PRIORITY 0x10U // VDP helper macros #define __WRITE_VDP_REG(REG, v) shadow_##REG=(v);__critical{VDP_CMD=(shadow_##REG),VDP_CMD=REG;}

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.