Fix bottom line being glitched

This commit is contained in:
Cacodemon345 2022-02-05 16:45:17 +06:00
parent 9cd757c213
commit 03a6b2b50a

View file

@ -239,7 +239,7 @@ void RendererStack::blit(int x, int y, int w, int h)
sw = this->w = w;
sh = this->h = h;
uint8_t* imagebits = std::get<uint8_t*>(imagebufs[currentBuf]);
for (int y1 = y; y1 < (y + h - 1); y1++)
for (int y1 = y; y1 < (y + h); y1++)
{
auto scanline = imagebits + (y1 * (2048) * 4) + (x * 4);
video_copy(scanline, &(buffer32->line[y1][x]), w * 4);