johannes-fetz / joengine

Jo Engine is an open source 2D and 3D game engine for the Sega Saturn written in C under MIT license
http://jo-engine.org/
MIT License
205 stars 32 forks source link

Enabling VDP2 planes corrupts jo_printf memory #55

Closed retrohead closed 2 years ago

retrohead commented 3 years ago

I'm not 100% sure what is happening here but after enabling VDP2 planes, the palette used by jo_printf seems to get corrupted but this is not present in the sample

johannes-fetz commented 3 years ago

When you change VDP2 layer settings, it's not safe to use jo_printf() anymore. You have to register your own font and draw it on the appropriate layer. like the "NBG2 font" sample. Then you can use jo_nbg2_printf() for example instead of jo_printf() with the same usage.