mirror of https://github.com/mgba-emu/mgba.git
Qt: Only attempt to paint message when there is one
This commit is contained in:
parent
0126330530
commit
b176516c36
|
@ -79,7 +79,9 @@ void MessagePainter::redraw() {
|
|||
}
|
||||
|
||||
void MessagePainter::paint(QPainter* painter) {
|
||||
painter->drawPixmap(m_local, m_pixmap);
|
||||
if (!m_message.text().isEmpty()) {
|
||||
painter->drawPixmap(m_local, m_pixmap);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue