mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix non-printing characters in Memory view
This commit is contained in:
parent
10d5588d4c
commit
a01f9921f5
|
@ -37,9 +37,9 @@ MemoryModel::MemoryModel(QWidget* parent)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < 128; ++i) {
|
for (int i = 0; i < 128; ++i) {
|
||||||
QChar c(0xFFFD);
|
QChar c(i);
|
||||||
if (c.isPrint()) {
|
if (!c.isPrint()) {
|
||||||
c = i;
|
c = '.';
|
||||||
}
|
}
|
||||||
QStaticText str = QStaticText(QString(c));
|
QStaticText str = QStaticText(QString(c));
|
||||||
str.prepare(QTransform(), m_font);
|
str.prepare(QTransform(), m_font);
|
||||||
|
|
Loading…
Reference in New Issue