Fix R_DrawFlippedColumnInCache and R_DrawBlendColumnInCache

This commit is contained in:
Lactozilla 2023-09-23 20:30:50 -03:00
parent e30523264c
commit 28e6b97299

View file

@ -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;