diff --git a/engine/client/sbar.c b/engine/client/sbar.c index d27fb22c1..eb29a4ab2 100644 --- a/engine/client/sbar.c +++ b/engine/client/sbar.c @@ -216,7 +216,8 @@ void Draw_FunStringWidth(float x, float y, const void *str, int width, int right int fw = 0; unsigned int codeflags, codepoint; - width = (width*vid.rotpixelwidth)/vid.width; + //be generous and round up, to avoid too many issues with truncations + width = ceil((width*(float)vid.rotpixelwidth)/vid.width); codeflags = (highlight&1)?CON_ALTMASK:CON_WHITEMASK; if (highlight&2)