From b7ecffedcd46b7d9320c03769d37e9db86b6249e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustaf=20Alh=C3=A4ll?= Date: Wed, 13 Aug 2025 17:51:08 +0200 Subject: [PATCH] Fix pixel shift caused by negative pixel positioning in software --- src/r_draw_column.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_draw_column.cpp b/src/r_draw_column.cpp index dcc1a5b90..4b3a4f95d 100644 --- a/src/r_draw_column.cpp +++ b/src/r_draw_column.cpp @@ -217,7 +217,7 @@ static void R_DrawColumnTemplate(drawcolumndata_t *dc) { if (frac < 0) // adjust in case we underread - frac += FRACUNIT; + frac += fracstep; // texture has no height, so just go while (--count >= 0)