mirror of https://github.com/stella-emu/stella.git
Fix minor warnings from clang.
This commit is contained in:
parent
0aeffe0392
commit
b83a74d256
|
@ -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());
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue