String drawing: remove support for transparency character codes

- Frees up 5-7 bit range when 8th bit is set
This commit is contained in:
James R 2024-01-16 05:02:48 -08:00
parent 6259c30a2e
commit a1e4479f5d

View file

@ -1796,7 +1796,7 @@ void V_DrawCharacterScaled(
if (notColored == true)
{
if (( c & 0x80 ))
if (( c & 0xF0 ) == 0x80)
{
colormap = V_GetStringColormap(
( ( c & 0x7f ) << V_CHARCOLORSHIFT ) & V_CHARCOLORMASK
@ -2530,7 +2530,7 @@ void V_DrawStringScaled(
cx = x;
break;
default:
if (( c & 0x80 ))
if (( c & 0xF0 ) == 0x80)
{
if (notcolored)
{
@ -2662,7 +2662,7 @@ fixed_t V_StringScaledWidth(
cx = 0;
break;
default:
if (( c & 0x80 ))
if (( c & 0xF0 ) == 0x80)
continue;
if (uppercase)
@ -2794,7 +2794,7 @@ char * V_ScaledWordWrap(
startwriter = 0;
break;
default:
if (( c & 0x80 ))
if (( c & 0xF0 ) == 0x80)
;
else
{