git.y1.nz

gbdk-2020

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

commit 017f7b28f900015baa3af4e54877ccb7ed36d6e0
parent 30149b27201cc779ca7c3de3b622489a9f66641f
Author: Toxa <untoxa@mail.ru>
Date:   Thu,  9 Jun 2022 11:26:53 +0300

SMS: cgb_compatibility inline function which sets the default palette with the four shades of gray

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

diff --git a/gbdk-lib/include/sms/sms.h b/gbdk-lib/include/sms/sms.h @@ -503,6 +503,10 @@ typedef uint16_t palette_color_t; #endif void set_default_palette(); +inline void cgb_compatibility() { + set_default_palette(); +} + inline void cpu_fast() {} void set_palette_entry(uint8_t palette, uint8_t entry, uint16_t rgb_data) Z88DK_CALLEE PRESERVES_REGS(iyh, iyl);

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