git.y1.nz

gbdk-2020

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

commit 0c10252d2dccc480f4fb3b04457f196338d2046c
parent 624f6347914134a24b5ea7ed81fbd27571cf786b
Author: Toxa <untoxa@mail.ru>
Date:   Tue, 31 Aug 2021 16:01:38 +0300

DEVICE_SUPPORTS_COLOR macro

Diffstat:
Mgbdk-lib/include/gb/gb.h4++++
Mgbdk-lib/include/sms/sms.h5+++++
2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/gbdk-lib/include/gb/gb.h b/gbdk-lib/include/gb/gb.h @@ -321,6 +321,10 @@ extern uint8_t _is_GBA; */ #define GBA_DETECTED 0x01 +/** Macro returns TRUE if device supports color + */ +#define DEVICE_SUPPORTS_COLOR (_cpu == CGB_TYPE) + /** Global Time Counter in VBL periods (60Hz) Increments once per Frame diff --git a/gbdk-lib/include/sms/sms.h b/gbdk-lib/include/sms/sms.h @@ -257,6 +257,11 @@ void refresh_OAM(); #define SPRITES_8x8 \ __WRITE_VDP_REG(VDP_R1, __READ_VDP_REG(VDP_R1) &= (~R1_SPR_8X16)) +/** Macro returns TRUE if device supports color + * (it always does on SMS/GG) + */ +#define DEVICE_SUPPORTS_COLOR (TRUE) + /** Global Time Counter in VBL periods (60Hz) Increments once per Frame

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