Minor cleanup of warnings in FrameBuffer class.

This commit is contained in:
Stephen Anthony 2018-01-19 18:32:11 -03:30
parent 2d03a2d059
commit 1055a4bd06
2 changed files with 5 additions and 5 deletions

View File

@ -46,13 +46,12 @@ FrameBuffer::FrameBuffer(OSystem& osystem)
: myOSystem(osystem),
myInitializedCount(0),
myPausedCount(0),
myStatsEnabled(false),
myLastFrameRate(60),
myCurrentModeList(nullptr),
myTotalTime(0),
myTotalFrames(0),
myLastFrameRate(60)
myTotalFrames(0)
{
myMsg.surface = myStatsMsg.surface = nullptr;
myStatsEnabled = myMsg.enabled = myStatsMsg.enabled = false;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -509,6 +509,8 @@ class FrameBuffer
uInt32 color;
shared_ptr<FBSurface> surface;
bool enabled;
Message() : counter(0), x(0), y(0), w(0), h(0), color(0), enabled(false) { }
};
Message myMsg;
Message myStatsMsg;
@ -537,7 +539,6 @@ class FrameBuffer
uInt64 myTotalTime;
uInt64 myTotalFrames;
float myLastRunFrameRate;
private:
// Following constructors and assignment operators not supported