diff --git a/src/qt/qt_rendererstack.cpp b/src/qt/qt_rendererstack.cpp index c736baa5d..78e8e99d8 100644 --- a/src/qt/qt_rendererstack.cpp +++ b/src/qt/qt_rendererstack.cpp @@ -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) {