Browse Source

engine: client: font: do not apply filtering hack when fonts aren't upscaled

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

2
engine/client/cl_font.c

@ -157,7 +157,7 @@ int CL_DrawCharacter( float x, float y, int number, rgba_t color, cl_font_t *fon
return 0; return 0;
rc = &font->fontRc[number]; rc = &font->fontRc[number];
if( font->nearest ) if( font->nearest || font->scale > 1.0f )
half = 0; half = 0;
s1 = ((float)rc->left + half ) / texw; s1 = ((float)rc->left + half ) / texw;

Loading…
Cancel
Save