all repos — mgba @ a01f9921f56c00d6755f85aafccfc1a416664ed4

mGBA Game Boy Advance Emulator

Qt: Fix non-printing characters in Memory view
Jeffrey Pfau jeffrey@endrift.com
Wed, 29 Apr 2015 01:22:40 -0700
commit

a01f9921f56c00d6755f85aafccfc1a416664ed4

parent

10d5588d4cc543f07b4f6bf21e8a3bac63fb02f3

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

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

@@ -37,9 +37,9 @@ m_staticNumbers.append(str);

} for (int i = 0; i < 128; ++i) { - QChar c(0xFFFD); - if (c.isPrint()) { - c = i; + QChar c(i); + if (!c.isPrint()) { + c = '.'; } QStaticText str = QStaticText(QString(c)); str.prepare(QTransform(), m_font);