From 1a9971fee99a5967399329656f149ef7e38ecf60 Mon Sep 17 00:00:00 2001 From: Markus Kalkbrenner Date: Thu, 7 Dec 2023 16:41:44 +0100 Subject: [PATCH] fixed memory issue on WIndows --- src/ZeDMD.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZeDMD.cpp b/src/ZeDMD.cpp index 4741fff..569bcb0 100644 --- a/src/ZeDMD.cpp +++ b/src/ZeDMD.cpp @@ -305,7 +305,7 @@ void ZeDMD::RenderColoredGray6(uint8_t *pFrame, uint8_t *pRotations) { Split(m_pPlanes, width, height, 6, m_pScaledFrameBuffer); - int bufferSize = bufferSize / 8 * 6; + bufferSize = bufferSize / 8 * 6; memcpy(m_pCommandBuffer, m_palette, 192); memcpy(m_pCommandBuffer + 192, m_pPlanes, bufferSize);