From 03a6b2b50a7a63a2851c728f14b9955385b41069 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Sat, 5 Feb 2022 16:45:17 +0600 Subject: [PATCH] Fix bottom line being glitched --- src/qt/qt_rendererstack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/qt_rendererstack.cpp b/src/qt/qt_rendererstack.cpp index 689721310..b07ed34f7 100644 --- a/src/qt/qt_rendererstack.cpp +++ b/src/qt/qt_rendererstack.cpp @@ -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(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);