Skip to content

Commit 27be38a

Browse files
committed
support 256x64 RGB24DMDs with Serum
1 parent c65c5aa commit 27be38a

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

src/DMD.cpp

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,8 +1022,24 @@ void DMD::SerumThread()
10221022

10231023
if (m_altColorPath[0] == '\0') strcpy(m_altColorPath, Config::GetInstance()->GetAltColorPath());
10241024
uint8_t flags = FLAG_REQUEST_32P_FRAMES;
1025-
// At the moment, ZeDMD HD is the only device supporting 64P frames. Not requesting 64P saves memory
1026-
if (m_pZeDMD && m_pZeDMD->GetWidth() == 256) flags |= FLAG_REQUEST_64P_FRAMES;
1025+
// At the moment, ZeDMD HD and RGB24DMD are the only devices supporting 64P frames. Not requesting 64P saves
1026+
// memory.
1027+
if (m_pZeDMD && m_pZeDMD->GetWidth() == 256)
1028+
{
1029+
flags |= FLAG_REQUEST_64P_FRAMES;
1030+
}
1031+
else if (m_rgb24DMDs.size() > 0)
1032+
{
1033+
for (RGB24DMD* pRGB24DMD : m_rgb24DMDs)
1034+
{
1035+
if (pRGB24DMD->GetWidth() == 256)
1036+
{
1037+
flags |= FLAG_REQUEST_64P_FRAMES;
1038+
break;
1039+
}
1040+
}
1041+
}
1042+
10271043
m_pSerum = (name[0] != '\0') ? Serum_Load(m_altColorPath, m_romName, flags) : nullptr;
10281044
if (m_pSerum)
10291045
{

0 commit comments

Comments
 (0)