remove unused hires variable from drawcolumndata

This commit is contained in:
Alug 2025-10-19 20:40:51 +02:00
parent e8e72db32f
commit bad7b9f980
3 changed files with 1 additions and 3 deletions

View file

@ -1093,7 +1093,6 @@ typedef struct
INT32 yh;
fixed_t iscale;
fixed_t texturemid;
UINT8 hires;
UINT8 shadowcolor;
UINT8* source; // first pixel in a column

View file

@ -250,7 +250,7 @@ static void R_DrawColumnTemplate(drawcolumndata_t *dc)
// Determine scaling, which is the only mapping to be done.
fracstep = dc->iscale;
//frac = dc_texturemid + (dc_yl - centery)*fracstep;
frac = (dc->texturemid + FixedMul((dc->yl << FRACBITS) - centeryfrac, fracstep)) * (!dc->hires);
frac = dc->texturemid + FixedMul((dc->yl << FRACBITS) - centeryfrac, fracstep);
// Inner loop that does the actual texture mapping, e.g. a DDA-like scaling.
// This is as fast as it gets.

View file

@ -1141,7 +1141,6 @@ static void R_DrawVisSprite(vissprite_t *vis)
}
R_SetColumnFunc(BASEDRAWFUNC, false);
dc.hires = 0;
vis->x1 = x1;
vis->x2 = x2;