Skip to content

Commit

Permalink
updated libzedmd, don't PixelcadeThread if no Pixelcade attached
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Feb 16, 2024
1 parent e07e0a4 commit 463aa09
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion platforms/android/arm64-v8a/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

LIBZEDMD_SHA=44a8f03cd2f6c8c358714d871f4c716f447052ec
LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8
LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5

if [[ $(uname) == "Linux" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion platforms/ios/arm64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

LIBZEDMD_SHA=44a8f03cd2f6c8c358714d871f4c716f447052ec
LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8
LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5

NUM_PROCS=$(sysctl -n hw.ncpu)
Expand Down
2 changes: 1 addition & 1 deletion platforms/linux/aarch64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

LIBZEDMD_SHA=44a8f03cd2f6c8c358714d871f4c716f447052ec
LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8
LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5

NUM_PROCS=$(nproc)
Expand Down
2 changes: 1 addition & 1 deletion platforms/linux/x64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

LIBZEDMD_SHA=44a8f03cd2f6c8c358714d871f4c716f447052ec
LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8
LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5

NUM_PROCS=$(nproc)
Expand Down
2 changes: 1 addition & 1 deletion platforms/macos/arm64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

LIBZEDMD_SHA=44a8f03cd2f6c8c358714d871f4c716f447052ec
LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8
LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5

NUM_PROCS=$(sysctl -n hw.ncpu)
Expand Down
2 changes: 1 addition & 1 deletion platforms/macos/x64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

LIBZEDMD_SHA=44a8f03cd2f6c8c358714d871f4c716f447052ec
LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8
LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5

NUM_PROCS=$(sysctl -n hw.ncpu)
Expand Down
2 changes: 1 addition & 1 deletion platforms/tvos/arm64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

LIBZEDMD_SHA=44a8f03cd2f6c8c358714d871f4c716f447052ec
LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8
LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5

NUM_PROCS=$(sysctl -n hw.ncpu)
Expand Down
2 changes: 1 addition & 1 deletion platforms/win/x64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

LIBZEDMD_SHA=44a8f03cd2f6c8c358714d871f4c716f447052ec
LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8
LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5

echo "Building libraries..."
Expand Down
2 changes: 1 addition & 1 deletion platforms/win/x86/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

LIBZEDMD_SHA=44a8f03cd2f6c8c358714d871f4c716f447052ec
LIBZEDMD_SHA=f7cab7910a347d744584274117f541182cd216d8
LIBSERUM_SHA=b69d2b436bc93570a2e7e78d0946cd3c43f7aed5

echo "Building libraries..."
Expand Down
4 changes: 2 additions & 2 deletions src/DMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ void DMD::FindDisplays()
if (pConfig->IsPixelcade())
{
pPixelcadeDMD = PixelcadeDMD::Connect(pConfig->GetPixelcadeDevice(), 128, 32);
m_pPixelcadeDMDThread = new std::thread(&DMD::PixelcadeDMDThread, this);
if (pPixelcadeDMD) m_pPixelcadeDMDThread = new std::thread(&DMD::PixelcadeDMDThread, this);
}

m_pPixelcadeDMD = pPixelcadeDMD;
Expand Down Expand Up @@ -561,7 +561,7 @@ void DMD::PixelcadeDMDThread()
while (!m_stopFlag && bufferPosition != m_updateBufferPosition)
{
// @todo scaling
if (m_updateBuffer[bufferPosition]->width == 128 && m_updateBuffer[bufferPosition]->width == 32 &&
if (m_updateBuffer[bufferPosition]->width == 128 && m_updateBuffer[bufferPosition]->height == 32 &&
(m_updateBuffer[bufferPosition]->hasData || m_updateBuffer[bufferPosition]->hasSegData))
{
int length = m_updateBuffer[bufferPosition]->width * m_updateBuffer[bufferPosition]->height;
Expand Down

0 comments on commit 463aa09

Please sign in to comment.