From 3ea81d612de9bfd18d9aaf00ba5a20e697a9837c Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 6 Mar 2024 17:35:59 +0000 Subject: [PATCH] Fix anti-offset behaviour for non-FRACUNIT params to V_DrawStringScaled Specifically fixes netgame chat, which was temporarily unreadable --- src/v_video.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v_video.cpp b/src/v_video.cpp index b37c1ad3c..c31b6ac83 100644 --- a/src/v_video.cpp +++ b/src/v_video.cpp @@ -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,