Wordwrap the original composers field on the Stereo, so that nobody gets cut off

This commit is contained in:
toaster 2024-05-01 15:02:06 +01:00
parent 641e397625
commit 68ee118078

View file

@ -8833,7 +8833,16 @@ void M_DrawSoundTest(void)
if (soundtest.current->source)
V_DrawThinString(x+1, (y += 10), 0, soundtest.current->source);
if (soundtest.current->composers)
V_DrawThinString(x+1, (y += 10), 0, soundtest.current->composers);
{
char *wrappedcomposers = V_ScaledWordWrap(
(BASEVIDWIDTH - ((x+1)*2)) << FRACBITS,
FRACUNIT, FRACUNIT, FRACUNIT,
0, TINY_FONT,
soundtest.current->composers
);
V_DrawThinString(x+1, (y += 10), 0, wrappedcomposers);
Z_Free(wrappedcomposers);
}
}
else
{