mirror of
https://github.com/blendogames/thirtyflightsofloving.git
synced 2025-01-18 22:41:49 +00:00
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:
parent
ceb8970ecc
commit
8085bad68a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue