Whitespace at the end of a line should NOT be counted when getting V_StringScaledWidth

Second guessed this change over lunch
This commit is contained in:
toaster 2023-07-11 15:56:15 +01:00
parent 277f7c51a3
commit 445929fac9

View file

@ -2605,7 +2605,7 @@ fixed_t V_StringScaledWidth(
cx += cw;
}
else
right = (cx += fontspec.spacew);
cx += fontspec.spacew;
}
fullwidth = std::max(right, std::max(cx, fullwidth));
@ -2728,7 +2728,7 @@ void V_ScaledWordWrap(
}
else
{
right = (cx += fontspec.spacew);
cx += fontspec.spacew;
cxatstart = cx;
start = i;
}