Draw text to Screen Add Borders [SwareJonge]
#1
Draw Text To Screen Add Borders [SwareJonge]

this code adds borders to the text drawn on screen
the 06 part of this code is optional but it reduces the border size which to me looks nice if only 1 line is drawn

(PAL)
04021F50 38E00001
0602201C 00000014
38040000 38790000
1CA00006 389AFFFF
38C00009 00000000

(NTSC-U)
04021EB0 38E00001
06021F7C 00000014
38040000 38790000
1CA00006 389AFFFF
38C00009 00000000

(NTSC-J)
04021E70 38E00001
06021F3C 00000014
38040000 38790000
1CA00006 389AFFFF
38C00009 00000000

(NTSC-K)
04021FB0 38E00001
0602207C 00000014
38040000 38790000
1CA00006 389AFFFF
38C00009 00000000

Comparison Screenshots:
Without code: https://cdn.discordapp.com/attachments/7...P01-20.png
04 only: https://cdn.discordapp.com/attachments/6...P01-21.png
06 and 04: https://cdn.discordapp.com/attachments/7...P01-21.png

04 code sets the backErase flag for nw4r_db_DrawStringToXfb_ to true, this is normally always false
06 patches some calculations for our text we want to draw on screen so that part of the framebuffer gets erased
 
Code Creator: SwareJonge
Reply


Messages In This Thread
Draw text to Screen Add Borders [SwareJonge] - by SwareJonge - 01-14-2021, 10:15 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)