Fix anti-offset behaviour for non-FRACUNIT params to V_DrawStringScaled

Specifically fixes netgame chat, which was temporarily unreadable
This commit is contained in:
toaster 2024-03-06 17:35:59 +00:00
parent 10d2bb4511
commit 3ea81d612d

View file

@ -2715,7 +2715,7 @@ void V_DrawStringScaled(
if (V_CharacterValid(font, c) == true)
{
// Remove offsets from patch
fixed_t patchxofs = SHORT (font->font[c]->leftoffset) * dupx * FRACUNIT;
fixed_t patchxofs = SHORT (font->font[c]->leftoffset) * dupx * scale;
cw = SHORT (font->font[c]->width) * dupx;
cxoff = (*fontspec.dim_fn)(scale, fontspec.chw, hchw, dupx, &cw);
V_DrawFixedPatch(cx + cxoff + patchxofs, cy + cyoff, scale,