Browse Source

engine: client: font: fix CL_DrawStringLen

pull/2/head
Alibek Omarov 2 years ago
parent
commit
2225915702
  1. 2
      engine/client/cl_font.c

2
engine/client/cl_font.c

@ -286,7 +286,7 @@ void CL_DrawStringLen( cl_font_t *font, const char *s, int *width, int *height,
if( number ) if( number )
{ {
draw_len += font->charWidths[*s]; draw_len += font->charWidths[number];
if( draw_len > *width ) if( draw_len > *width )
*width = draw_len; *width = draw_len;

Loading…
Cancel
Save