mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix frame copy
This commit is contained in:
parent
0849001f96
commit
b86d3f9fc3
|
@ -798,8 +798,8 @@ void CoreController::finishFrame() {
|
|||
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());
|
||||
memcpy(m_activeBuffer->data(), m_completeBuffer->data(), m_activeBuffer->size());
|
||||
m_threadContext.core->setVideoBuffer(m_threadContext.core, reinterpret_cast<color_t*>(m_activeBuffer->data()), 256);
|
||||
|
||||
for (auto& action : m_frameActions) {
|
||||
action();
|
||||
|
|
Loading…
Reference in New Issue