From e6034d2d5a7e24feaa74c6acc163f4ed8b2383c4 Mon Sep 17 00:00:00 2001 From: Antonio Giner Date: Sun, 18 Feb 2024 16:49:12 +0100 Subject: [PATCH] [nogpu] Apply pitch correctly to non-4 multiples. --- src/osd/modules/render/drawnogpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/modules/render/drawnogpu.cpp b/src/osd/modules/render/drawnogpu.cpp index 9125e1e6a3281..be401803938e0 100644 --- a/src/osd/modules/render/drawnogpu.cpp +++ b/src/osd/modules/render/drawnogpu.cpp @@ -405,7 +405,7 @@ int renderer_nogpu::draw(const int update) for (i = lstart; i <= lend ; i += lstep) { - for (j = 0; j < pitch * 4; j += 4) + for (j = 0; j < m_width * 4; j += 4) { m_fb[k] = (char)m_bmdata[i+j]; m_fb[k+1] = (char)m_bmdata[i+j+1];