all repos — mgba @ c91ad7f85f8e24f9641e8f15c297fb9d2d10e13a

mGBA Game Boy Advance Emulator

Fix resizeEvent blocking when the thread has shut down
Jeffrey Pfau jeffrey@endrift.com
Fri, 17 Oct 2014 01:38:00 -0700
commit

c91ad7f85f8e24f9641e8f15c297fb9d2d10e13a

parent

a6f5bbbeb9f8a20d66cd325b27a97d73ce832175

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

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

@@ -69,7 +69,7 @@ swapBuffers();

} void Display::resizeEvent(QResizeEvent* event) { - if (m_painter) { + if (m_drawThread) { QMetaObject::invokeMethod(m_painter, "resize", Qt::BlockingQueuedConnection, Q_ARG(QSize, event->size())); } }