all repos — mgba @ 27898fb1f3f6cf4c0cd19a8d6c5b485bca589b70

mGBA Game Boy Advance Emulator

Qt: Prevent messages from queuing up too quickly (fixes #43)
Jeffrey Pfau jeffrey@endrift.com
Wed, 01 Jul 2015 21:08:29 -0700
commit

27898fb1f3f6cf4c0cd19a8d6c5b485bca589b70

parent

5afa24c6568e7fc1187cdf7e3ffc0f45e4b0c7d4

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

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

@@ -117,7 +117,7 @@ }

void DisplayGL::showMessage(const QString& message) { if (m_drawThread) { - QMetaObject::invokeMethod(m_painter, "showMessage", Q_ARG(const QString&, message)); + QMetaObject::invokeMethod(m_painter, "showMessage", Qt::BlockingQueuedConnection, Q_ARG(const QString&, message)); } }
M src/platform/qt/MessagePainter.cppsrc/platform/qt/MessagePainter.cpp

@@ -7,8 +7,6 @@ #include "MessagePainter.h"

#include <QPainter> -#include <QDebug> - extern "C" { #include "gba/video.h" }