Skip to content

Commit

Permalink
Fix life display in solaris.
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyHairy committed Jan 31, 2024
1 parent 34a9df1 commit 5a39e96
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/emucore/tia/Player.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,15 @@ void Player::nusiz(uInt8 value, bool hblank)

myDecodes = DrawCounterDecodes::get().playerDecodes()[myDecodesOffset];

// Changing NUSIZ can trigger a decode in the same cycle
// (https://github.com/stella-emu/stella/issues/1012)
if (!myIsRendering && myDecodes[(myCounter + TIAConstants::H_PIXEL - 1) % TIAConstants::H_PIXEL]) {
myIsRendering = true;
mySampleCounter = 0;
myRenderCounter = renderCounterOffset;
myCopy = myDecodes[myCounter - 1];
}

if (
myDecodes != oldDecodes &&
myIsRendering &&
Expand Down

0 comments on commit 5a39e96

Please sign in to comment.