Skip to content

Commit

Permalink
fixed memory issue on WIndows
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Dec 7, 2023
1 parent 4156443 commit 1a9971f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZeDMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1a9971f

Please sign in to comment.