All my VDP_drawText() are gone with SGDK 1.4.1

SGDK only sub forum

Moderator: Stef

Post Reply
DavilaGames
Interested
Posts: 13
Joined: Thu Jul 04, 2019 4:25 am
Location: Juiz de Fora/MG, Brasil
Contact:

All my VDP_drawText() are gone with SGDK 1.4.1

Post 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?
Yuri d´Ávila
DAVILA GAMES
https://www.davilagames.com.br
DavilaGames
Interested
Posts: 13
Joined: Thu Jul 04, 2019 4:25 am
Location: Juiz de Fora/MG, Brasil
Contact:

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

Post 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.
Yuri d´Ávila
DAVILA GAMES
https://www.davilagames.com.br
Chilly Willy
Very interested
Posts: 2993
Joined: Fri Aug 17, 2007 9:33 pm

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

Post by Chilly Willy »

Thanks for posting the fix. That may help someone else in the future who runs into the same thing.
Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

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

Post 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 :)
Post Reply