mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-04 07:52:22 +00:00
Fix anti-offset behaviour for non-FRACUNIT params to V_DrawStringScaled
Specifically fixes netgame chat, which was temporarily unreadable
This commit is contained in:
parent
10d2bb4511
commit
3ea81d612d
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue