gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 783de6ede76c48ed20059ed3b84e2b86aeda31b8 parent 9dbe8ae91c25a12ed4c47de1c4425c54b53a8d05 Author: Michel Iwaniec <46843052+michel-iwaniec@users.noreply.github.com> Date: Thu, 28 May 2026 00:54:40 +0100 NES bugfix: Add missing function prototype for set_win_submap_attributes_nes16x16 in nes.h (#898) Diffstat:
| M | gbdk-lib/include/nes/nes.h | 13 | +++++++++++++ |
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/gbdk-lib/include/nes/nes.h b/gbdk-lib/include/nes/nes.h @@ -1257,6 +1257,19 @@ void set_win_based_submap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint a sub-region from a source tile map. Useful for scrolling implementations of maps larger than 32 x 30 tiles. + @see SHOW_BKG + @see set_win_data, set_win_tiles, set_bkg_submap, set_tiles +*/ +#if defined(NES_WINDOW_LAYER) +void set_win_submap_attributes_nes16x16(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *attributes, uint8_t map_w) NO_OVERLAY_LOCALS; +#else +#define set_win_submap_attributes_nes16x16 set_bkg_submap_attributes_nes16x16 +#endif + +/** Sets a rectangular area of the Window Tile Map attributes using + a sub-region from a source tile map. Useful for scrolling implementations + of maps larger than 32 x 30 tiles. + Please note that this is just a wrapper function for set_win_submap_attributes_nes16x16() and divides the coordinates and dimensions by 2 to achieve this. It is intended to make code more portable by using the same coordinate system
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.