String drawing: fix width calculation not accounting for string dance character code

This commit is contained in:
James R 2024-01-16 05:12:12 -08:00
parent a1e4479f5d
commit 0d07b83896

View file

@ -2662,7 +2662,7 @@ fixed_t V_StringScaledWidth(
cx = 0;
break;
default:
if (( c & 0xF0 ) == 0x80)
if (( c & 0xF0 ) == 0x80 || c == V_STRINGDANCE)
continue;
if (uppercase)
@ -2794,7 +2794,7 @@ char * V_ScaledWordWrap(
startwriter = 0;
break;
default:
if (( c & 0xF0 ) == 0x80)
if (( c & 0xF0 ) == 0x80 || c == V_STRINGDANCE)
;
else
{