Skip to content

Commit

Permalink
renamed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Feb 22, 2024
1 parent fdfdb4c commit 0b65d66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -939,11 +939,11 @@ bool DMD::UpdatePalette(uint8_t* pPalette, uint8_t depth, uint8_t r, uint8_t g,
return (memcmp(pPalette, palette, colors * 3) != 0);
}

void DMD::AdjustRGB24Depth(uint8_t* pData, uint8_t* pDstData, int length, uint8_t* palette, uint8_t depth)
void DMD::AdjustRGB24Depth(uint8_t* pData, uint8_t* pDstData, int bufferSize, uint8_t* palette, uint8_t depth)
{
if (depth != 24)
{
for (int i = 0; i < length; i++)
for (int i = 0; i < bufferSize; i++)
{
int pos = i * 3;
uint32_t r = pData[pos];
Expand All @@ -967,7 +967,7 @@ void DMD::AdjustRGB24Depth(uint8_t* pData, uint8_t* pDstData, int length, uint8_
}
else
{
memcpy(pDstData, pData, length);
memcpy(pDstData, pData, bufferSize);
}
}

Expand Down

0 comments on commit 0b65d66

Please sign in to comment.