Skip to content

Commit 7eaeb3d

Browse files
committed
fixed Serum HD for RGB24DMD
1 parent 27be38a commit 7eaeb3d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/DMD.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,6 +1596,7 @@ void DMD::RGB24DMDThread()
15961596
}
15971597
else
15981598
{
1599+
// Serum v2 or RGB16
15991600
for (int i = 0; i < length; i++)
16001601
{
16011602
int pos = i * 3;
@@ -1609,6 +1610,12 @@ void DMD::RGB24DMDThread()
16091610

16101611
for (RGB24DMD* pRGB24DMD : m_rgb24DMDs)
16111612
{
1613+
if (m_pSerum &&
1614+
(!IsSerumMode(m_pUpdateBufferQueue[bufferPosition]->mode, showNotColorizedFrames) ||
1615+
(pRGB24DMD->GetWidth() == 256 && m_pUpdateBufferQueue[bufferPosition]->mode == Mode::SerumV2_32_64) ||
1616+
(pRGB24DMD->GetWidth() < 256 && m_pUpdateBufferQueue[bufferPosition]->mode == Mode::SerumV2_64_32)))
1617+
continue;
1618+
16121619
if (pRGB24DMD->GetLength() == length * 3) pRGB24DMD->Update(rgb24Data);
16131620
}
16141621
}

0 commit comments

Comments
 (0)