Skip to content
Snippets Groups Projects
Commit c266a270 authored by sphere's avatar sphere
Browse files

Merge branch 'master' into 'master'

Fix console text bleeding

See merge request STJr/SRB2!1434
parents e06b450c c3d5740e
No related branches found
No related tags found
No related merge requests found
...@@ -1697,7 +1697,10 @@ static void CON_DrawHudlines(void) ...@@ -1697,7 +1697,10 @@ static void CON_DrawHudlines(void)
{ {
charflags = (*p & 0x7f) << V_CHARCOLORSHIFT; charflags = (*p & 0x7f) << V_CHARCOLORSHIFT;
p++; p++;
c++;
} }
if (c >= con_width)
break;
if (*p < HU_FONTSTART) if (*p < HU_FONTSTART)
;//charwidth = 4 * con_scalefactor; ;//charwidth = 4 * con_scalefactor;
else else
...@@ -1818,7 +1821,10 @@ static void CON_DrawConsole(void) ...@@ -1818,7 +1821,10 @@ static void CON_DrawConsole(void)
{ {
charflags = (*p & 0x7f) << V_CHARCOLORSHIFT; charflags = (*p & 0x7f) << V_CHARCOLORSHIFT;
p++; p++;
c++;
} }
if (c >= con_width)
break;
V_DrawCharacter(x, y, (INT32)(*p) | charflags | cv_constextsize.value | V_NOSCALESTART, true); V_DrawCharacter(x, y, (INT32)(*p) | charflags | cv_constextsize.value | V_NOSCALESTART, true);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment