mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-25 09:22:33 +00:00
String drawing: remove support for transparency character codes
- Frees up 5-7 bit range when 8th bit is set
This commit is contained in:
parent
6259c30a2e
commit
a1e4479f5d
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue