Skip to content

Commit

Permalink
GTS3: fix backward compatibility for frame coloring
Browse files Browse the repository at this point in the history
  • Loading branch information
vbousquet committed Jan 15, 2025
1 parent 019f34e commit 76126cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wpc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3127,7 +3127,7 @@ void core_dmd_update_pwm(core_tDMDPWMState* dmd_state) {
: dmd_state->raw_combiner == CORE_DMD_PWM_COMBINER_GTS3_4C_B ? 8
: /* CORE_DMD_PWM_COMBINER_GTS3_5C */ 12;
memset(dmd_state->bitplaneFrame, 0, dmd_state->frameSize);
for (int i = 0; i < nFrames; i++)
for (int i = 1; i <= nFrames; i++)
{
UINT8* rawData = &dmd_state->bitplaneFrame[0];
const UINT8* frameData = dmd_state->rawFrames + ((dmd_state->nextFrame + (dmd_state->nFrames - i)) % dmd_state->nFrames) * dmd_state->rawFrameSize;
Expand Down

0 comments on commit 76126cf

Please sign in to comment.