all repos — mgba @ 2d558338bfa00802fb62e746a022185c812ac35b

mGBA Game Boy Advance Emulator

Qt: Copy framebuffers to avoid issues with frameskip (fixes #862)
Vicki Pfau vi@endrift.com
Sun, 10 Sep 2017 13:13:49 -0700
commit

2d558338bfa00802fb62e746a022185c812ac35b

parent

ca4d53f014d925207a278b8d70d843f3fd970192

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/CoreController.cppsrc/platform/qt/CoreController.cpp

@@ -736,6 +736,8 @@ m_activeBuffer = &m_buffers[0];

if (m_activeBuffer == m_completeBuffer) { m_activeBuffer = &m_buffers[1]; } + // Copy contents to avoid issues when doing frameskip + *m_activeBuffer = *m_completeBuffer; m_threadContext.core->setVideoBuffer(m_threadContext.core, reinterpret_cast<color_t*>(m_activeBuffer->data()), screenDimensions().width()); for (auto& action : m_frameActions) {