Page 1 of 1

All my VDP_drawText() are gone with SGDK 1.4.1

Posted: Tue Jan 07, 2020 1:48 pm
by DavilaGames
I updated SGDK to 1.4.1 and suddenly all texts created with VDP_drawText from my program are gone. Is there anything I can do?

Re: All my VDP_drawText() are gone with SGDK 1.4.1

Posted: Sun Jan 19, 2020 2:31 am
by DavilaGames
Before I was using the command line: VDP_doVRamDMA((u32) mytile_font8bits, 46080, 1536); to set my font in the game. I used VDP_resetScreen() without problems ... Now when I use VDP_resetScreen() I have to set VDP_doVRamDMA((u32) mytile_font8bits, 46080, 1536) again. This solved the problem.

Re: All my VDP_drawText() are gone with SGDK 1.4.1

Posted: Sun Jan 19, 2020 1:31 pm
by Chilly Willy
Thanks for posting the fix. That may help someone else in the future who runs into the same thing.

Re: All my VDP_drawText() are gone with SGDK 1.4.1

Posted: Mon Jan 20, 2020 11:41 am
by Stef
I completely missed your message @DavilaGames !
Indeed VDP_resetScreen(..) does more now than before (it also clear VRAM), explaining you need to re-upload the font after calling it.
Definitely a problem, i will add the (default) font upload to the function ! Thanks for reporting :)