all repos — mgba @ b176516c36fdadb7e068e0624ec5afc5fad7fdec

mGBA Game Boy Advance Emulator

Qt: Only attempt to paint message when there is one
Vicki Pfau vi@endrift.com
Fri, 10 May 2019 11:24:23 -0700
commit

b176516c36fdadb7e068e0624ec5afc5fad7fdec

parent

0126330530a157caab4f3483ef061515f4685cf1

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

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

@@ -79,7 +79,9 @@ m_pixmap.setDevicePixelRatio(m_scaleFactor);

} void MessagePainter::paint(QPainter* painter) { - painter->drawPixmap(m_local, m_pixmap); + if (!m_message.text().isEmpty()) { + painter->drawPixmap(m_local, m_pixmap); + } }