Skip to content

Commit

Permalink
Add the case for big endian uint32_t for the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MartianGirl committed Feb 22, 2025
1 parent e061e84 commit 3e57691
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/src/ULA.cc
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@ void ULA::paint() {

case 3: // Only one frame
pixelsX2[(X_SIZE * yPos) + xPos] = col;
pixelsX2[(X_SIZE * (yPos + 1)) + xPos] = ((col & 0x00FEFEFE) >> 1 & 0x00FFFFFF) | (0xFF << 24);
#if SPECIDE_BYTE_ORDER == 1
pixelsX2[(X_SIZE * (yPos + 1)) + xPos] = ((col & 0xFEFEFE00) >> 1) | 0x000000FF;
#else
pixelsX2[(X_SIZE * (yPos + 1)) + xPos] = ((col & 0x00FEFEFE) >> 1) | 0xFF000000;
#endif
break;

default: // No scanlines
Expand Down

0 comments on commit 3e57691

Please sign in to comment.