Fix minor warnings from clang.

This commit is contained in:
Stephen Anthony 2024-01-26 13:08:24 -03:30
parent 0aeffe0392
commit b83a74d256
2 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@ Console::Console(OSystem& osystem, unique_ptr<Cartridge>& cart,
const TIA::onPhosphorCallback callback = [&frameBuffer = this->myOSystem.frameBuffer()](bool enable) const TIA::onPhosphorCallback callback = [&frameBuffer = this->myOSystem.frameBuffer()](bool enable)
{ {
frameBuffer.tiaSurface().enablePhosphor(enable); frameBuffer.tiaSurface().enablePhosphor(enable);
#if DEBUG_BUILD #ifdef DEBUG_BUILD
ostringstream msg; ostringstream msg;
msg << "Phosphor effect automatically " << (enable ? "enabled" : "disabled"); msg << "Phosphor effect automatically " << (enable ? "enabled" : "disabled");
frameBuffer.showTextMessage(msg.str()); frameBuffer.showTextMessage(msg.str());

View File

@ -68,13 +68,13 @@ TIA::TIA(ConsoleIO& console, const ConsoleTimingProvider& timingProvider,
: myConsole{console}, : myConsole{console},
myTimingProvider{timingProvider}, myTimingProvider{timingProvider},
mySettings{settings}, mySettings{settings},
myPhosphorCallback{callback},
myPlayfield{~CollisionMask::playfield & 0x7FFF}, myPlayfield{~CollisionMask::playfield & 0x7FFF},
myMissile0{~CollisionMask::missile0 & 0x7FFF}, myMissile0{~CollisionMask::missile0 & 0x7FFF},
myMissile1{~CollisionMask::missile1 & 0x7FFF}, myMissile1{~CollisionMask::missile1 & 0x7FFF},
myPlayer0{~CollisionMask::player0 & 0x7FFF}, myPlayer0{~CollisionMask::player0 & 0x7FFF},
myPlayer1{~CollisionMask::player1 & 0x7FFF}, myPlayer1{~CollisionMask::player1 & 0x7FFF},
myBall{~CollisionMask::ball & 0x7FFF} myBall{~CollisionMask::ball & 0x7FFF},
myPhosphorCallback{callback}
{ {
myBackground.setTIA(this); myBackground.setTIA(this);
myPlayfield.setTIA(this); myPlayfield.setTIA(this);