mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix memory editing overlay not displaying hex A-F properly
This commit is contained in:
parent
3c9433b74c
commit
abdf448f81
|
@ -450,7 +450,11 @@ void MemoryModel::drawEditingText(QPainter& painter, const QPointF& origin) {
|
|||
painter.drawStaticText(o, m_staticNumbers[b]);
|
||||
} else {
|
||||
int b = m_buffer & 0xF;
|
||||
if (b < 10) {
|
||||
painter.drawStaticText(o, m_staticAscii[b + '0']);
|
||||
} else {
|
||||
painter.drawStaticText(o, m_staticAscii[b - 10 + 'A']);
|
||||
}
|
||||
}
|
||||
o += QPointF(m_letterWidth * 2, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue