cache vid.height

This commit is contained in:
Alug committed 2025-10-11 21:20:42 +02:00
1 parent ab4a4ae42f
commit d122f80d53
1 file changed
+4 -2
+4 -2
View File
@@ -120,6 +120,8 @@ static void R_DrawSpanTemplate(drawspandata_t* ds)
intptr_t count = (ds->x2 - ds->x1 + 1);
//size_t i;
const INT32 stride = vid.height;
xposition = ds->xfrac; yposition = ds->yfrac;
xstep = ds->xstep; ystep = ds->ystep;
@@ -178,8 +180,8 @@ static void R_DrawSpanTemplate(drawspandata_t* ds)
*dest = R_DrawSpanPixel<Type>(ds, dsrc, colormap, bit, source);
dest += vid.height;
dsrc += vid.height;
dest += stride;
dsrc += stride;
xposition += xstep;
yposition += ystep;