[gens-sdl] Fixed a few errors found with cppcheck-1.72.
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Sun, 3 Apr 2016 05:31:29 +0000 (01:31 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Sun, 3 Apr 2016 05:31:29 +0000 (01:31 -0400)
EmuLoopPrivate: Removed 'frameskip'. This variable was already
defined in EventLoopPrivate.

VBackend: Initialize m_forceFbDirty to true.

src/gens-sdl/EmuLoop.cpp
src/gens-sdl/VBackend.cpp

index dd2de87..35e8eae 100644 (file)
@@ -96,7 +96,6 @@ class EmuLoopPrivate : public EventLoopPrivate
        public:
                Rom *rom;
                bool isPico;
-               bool frameskip; // If true, enable frameskip.
 
                EmuContext *emuContext;
                KeyManager *keyManager;
@@ -173,7 +172,6 @@ EmuLoopPrivate::EmuLoopPrivate()
        : EventLoopPrivate()
        , rom(nullptr)
        , isPico(false)
-       , frameskip(true)
        , emuContext(nullptr)
        , keyManager(nullptr)
        , saveSlot_selected(0)
index 2166934..e59c95c 100644 (file)
@@ -31,6 +31,7 @@ namespace GensSdl {
 
 VBackend::VBackend()
        : m_dirty(true)
+       , m_forceFbDirty(true)
        , m_fullscreen(false)
        , m_fb(nullptr)
        , m_int_fb(nullptr)