mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix font size in memory viewer
This commit is contained in:
parent
f7fc5c800e
commit
ebc7c2e50f
1
CHANGES
1
CHANGES
|
@ -5,6 +5,7 @@ Bugfixes:
|
|||
- Qt: Fix a race condition in PainterGL that could lead to a crash
|
||||
- Qt: Fix clear button/analog buttons in gamepad mapper on some platforms
|
||||
- GBA Video: Fix _mix for 15-bit color
|
||||
- Qt: Fix font size in memory viewer
|
||||
Misc:
|
||||
- GBA Audio: Implement missing flags on SOUNDCNT_X register
|
||||
|
||||
|
|
|
@ -34,7 +34,11 @@ MemoryModel::MemoryModel(QWidget* parent)
|
|||
{
|
||||
m_font.setFamily("Source Code Pro");
|
||||
m_font.setStyleHint(QFont::Monospace);
|
||||
#ifdef Q_OS_MAC
|
||||
m_font.setPointSize(12);
|
||||
#else
|
||||
m_font.setPointSize(10);
|
||||
#endif
|
||||
QFontMetrics metrics(m_font);
|
||||
m_cellHeight = metrics.height();
|
||||
m_letterWidth = metrics.averageCharWidth();
|
||||
|
|
Loading…
Reference in New Issue