Stephane-D / SGDK

SGDK - A free and open development kit for the Sega Mega Drive
https://www.patreon.com/SGDK
MIT License
1.75k stars 187 forks source link

SPR_init() calls Ex with different argument than documentation #185

Closed bferguson3 closed 3 years ago

bferguson3 commented 3 years ago

The code for SPR_init() calls SPR_initEx(420) (420 is repeated in the initEx code line 130 size = vramSize?vramSize:420;

The documents state the default call argument is 512. When changing it to 512, the sprite pattern area in VRAM extends up to the sgdk font. (Is 420 meant to leave room for window data?)

Either way the docs are different. What is meant to be default behavior here?

Stephane-D commented 3 years ago

The doc was indeed no up to date. Thanks for pointing it, i just updated it 👍