Fix life display in solaris.

This commit is contained in:
Christian Speckner 2024-01-31 21:07:11 +01:00
parent 34a9df151a
commit 5a39e9666b
1 changed files with 9 additions and 0 deletions

View File

@ -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 &&