From bad7b9f9808efe029a86e475d2175d7575f1c048 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 19 Oct 2025 20:40:51 +0200 Subject: [PATCH] remove unused hires variable from drawcolumndata --- src/r_defs.h | 1 - src/r_draw_column.cpp | 2 +- src/r_things.cpp | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/r_defs.h b/src/r_defs.h index 1aac18eb3..44c3bf56d 100644 --- a/src/r_defs.h +++ b/src/r_defs.h @@ -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 diff --git a/src/r_draw_column.cpp b/src/r_draw_column.cpp index f6f1085c7..1824fb442 100644 --- a/src/r_draw_column.cpp +++ b/src/r_draw_column.cpp @@ -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. diff --git a/src/r_things.cpp b/src/r_things.cpp index e4a420918..3b8e69808 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -1141,7 +1141,6 @@ static void R_DrawVisSprite(vissprite_t *vis) } R_SetColumnFunc(BASEDRAWFUNC, false); - dc.hires = 0; vis->x1 = x1; vis->x2 = x2;