Fixed wrap artifacts on upscaled 128x128 fonts at odd resolutions (1680x1050).

Changed vertex coords in R_DrawChar from float to int.  This fixes wrap artifacts with odd scaling factors.
This commit is contained in:
Knightmare66 2020-04-16 18:46:17 -04:00
parent ceb8970ecc
commit 8085bad68a

View file

@ -124,7 +124,8 @@ void R_DrawChar (float x, float y, int num, float scale,
{
int row, col, i;
float frow, fcol, size, cscale, italicAdd;
vec2_t texCoord[4], verts[4];
vec2_t texCoord[4]; // verts[4]
int verts[4][2]; // forcing this to int fixes wrap artifacts at odd resolutions
qboolean addChar = true;
num &= 255;