Copy lines from buffer32 one by one

(cherry picked from commit 00a75d4e602ec3ba6d214eeae4500c90dc77fc5f)
This commit is contained in:
Cacodemon345
2022-01-14 12:39:49 +06:00
committed by ts-korhonen
parent 6b9e196bb7
commit 31d3d6309b

View File

@@ -240,7 +240,11 @@ void RendererStack::blit(int x, int y, int w, int h)
sw = this->w = w;
sh = this->h = h;
auto imagebits = imagebufs[currentBuf].get();
video_copy(imagebits + y * (2048 * 4) + x * 4, &(buffer32->line[y][x]), h * 2048 * sizeof(uint32_t));
for (int y1 = y; y1 < (y + h - 1); y1++)
{
auto scanline = imagebits + (y1 * (2048) * 4) + (x * 4);
video_copy(scanline, &(buffer32->line[y1][x]), w * 4);
}
if (screenshots)
{