Qt: Fix frame copy

This commit is contained in:
Vicki Pfau 2018-09-15 16:04:59 -07:00
parent 0849001f96
commit b86d3f9fc3
1 changed files with 2 additions and 2 deletions

View File

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