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) if (V_CharacterValid(font, c) == true)
{ {
// Remove offsets from patch // 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; cw = SHORT (font->font[c]->width) * dupx;
cxoff = (*fontspec.dim_fn)(scale, fontspec.chw, hchw, dupx, &cw); cxoff = (*fontspec.dim_fn)(scale, fontspec.chw, hchw, dupx, &cw);
V_DrawFixedPatch(cx + cxoff + patchxofs, cy + cyoff, scale, V_DrawFixedPatch(cx + cxoff + patchxofs, cy + cyoff, scale,