From 28e6b97299e43ccdfbcd9f744a11f6a5d0265373 Mon Sep 17 00:00:00 2001 From: Lactozilla <jp6781615@gmail.com> Date: Sat, 23 Sep 2023 20:30:50 -0300 Subject: [PATCH] Fix R_DrawFlippedColumnInCache and R_DrawBlendColumnInCache --- src/r_textures.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_textures.c b/src/r_textures.c index 705a9af2d1..b1a5e3519f 100644 --- a/src/r_textures.c +++ b/src/r_textures.c @@ -124,7 +124,7 @@ static inline void R_DrawFlippedColumnInCache(column_t *column, UINT8 *cache, te { post_t *post = &column->posts[i]; topdelta = patchheight - post->length - post->topdelta; - source = column->pixels + post->data_offset + post->length; + source = column->pixels + post->data_offset + (post->length - 1); count = post->length; position = originy + topdelta; @@ -201,7 +201,7 @@ static inline void R_DrawBlendFlippedColumnInCache(column_t *column, UINT8 *cach { post_t *post = &column->posts[i]; topdelta = patchheight - post->length - post->topdelta; - source = column->pixels + post->data_offset + post->length; + source = column->pixels + post->data_offset + (post->length - 1); count = post->length; position = originy + topdelta; -- GitLab