Remove code that expects the GBA thread to still be around after it has ended

This commit is contained in:
Jeffrey Pfau 2014-10-18 04:09:49 -07:00
parent dbe5e7e2a5
commit e2812b30b2
1 changed files with 0 additions and 4 deletions

View File

@ -52,13 +52,9 @@ void Display::startDrawing(const uint32_t* buffer, GBAThread* thread) {
void Display::stopDrawing() {
if (m_drawThread) {
GBAThreadInterrupt(m_context);
GBASyncSuspendDrawing(&m_context->sync);
QMetaObject::invokeMethod(m_painter, "stop", Qt::BlockingQueuedConnection);
m_drawThread->exit();
m_drawThread = nullptr;
GBASyncResumeDrawing(&m_context->sync);
GBAThreadContinue(m_context);
}
}