Skip to content

Commit 07c3ffd

Browse files
committed
fixed not colorized mode
1 parent 990329d commit 07c3ffd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/DMD.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,8 @@ void DMD::ZeDMDThread()
723723
memcpy(indexBuffer, m_pUpdateBufferQueue[bufferPosition]->data, frameSize);
724724
update = true;
725725
}
726-
else if (!m_pSerum && m_pUpdateBufferQueue[bufferPosition]->mode == Mode::Data)
726+
else if ((!m_pSerum && m_pUpdateBufferQueue[bufferPosition]->mode == Mode::Data) ||
727+
(showNotColorizedFrames && m_pUpdateBufferQueue[bufferPosition]->mode == Mode::NotColorized))
727728
{
728729
memcpy(indexBuffer, m_pUpdateBufferQueue[bufferPosition]->data, frameSize);
729730
update = true;
@@ -1108,7 +1109,8 @@ void DMD::PixelcadeDMDThread()
11081109
memcpy(renderBuffer, m_pUpdateBufferQueue[bufferPosition]->data, length);
11091110
update = true;
11101111
}
1111-
else if (!m_pSerum && m_pUpdateBufferQueue[bufferPosition]->mode == Mode::Data)
1112+
else if ((!m_pSerum && m_pUpdateBufferQueue[bufferPosition]->mode == Mode::Data) ||
1113+
(showNotColorizedFrames && m_pUpdateBufferQueue[bufferPosition]->mode == Mode::NotColorized))
11121114
{
11131115
memcpy(renderBuffer, m_pUpdateBufferQueue[bufferPosition]->data, length);
11141116
update = true;
@@ -1290,7 +1292,8 @@ void DMD::RGB24DMDThread()
12901292
m_pUpdateBufferQueue[bufferPosition]->r, m_pUpdateBufferQueue[bufferPosition]->g,
12911293
m_pUpdateBufferQueue[bufferPosition]->b);
12921294

1293-
if (!m_pSerum && m_pUpdateBufferQueue[bufferPosition]->mode == Mode::Data)
1295+
if ((!m_pSerum && m_pUpdateBufferQueue[bufferPosition]->mode == Mode::Data) ||
1296+
(showNotColorizedFrames && m_pUpdateBufferQueue[bufferPosition]->mode == Mode::NotColorized))
12941297
{
12951298
if (memcmp(renderBuffer, m_pUpdateBufferQueue[bufferPosition]->data, length) != 0)
12961299
{

0 commit comments

Comments
 (0)