mirror of https://github.com/mgba-emu/mgba.git
Qt: Prevent messages from queuing up too quickly (fixes #43)
This commit is contained in:
parent
5afa24c656
commit
27898fb1f3
|
@ -117,7 +117,7 @@ void DisplayGL::framePosted(const uint32_t* buffer) {
|
||||||
|
|
||||||
void DisplayGL::showMessage(const QString& message) {
|
void DisplayGL::showMessage(const QString& message) {
|
||||||
if (m_drawThread) {
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,6 @@
|
||||||
|
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
|
|
||||||
#include <QDebug>
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "gba/video.h"
|
#include "gba/video.h"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue