mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix font size in memory viewer
This commit is contained in:
parent
ddbbed133e
commit
a9c94e9d18
1
CHANGES
1
CHANGES
|
@ -13,6 +13,7 @@ Bugfixes:
|
||||||
- Qt: Fix clear button/analog buttons in gamepad mapper on some platforms
|
- Qt: Fix clear button/analog buttons in gamepad mapper on some platforms
|
||||||
- GBA Video: Fix _mix for 15-bit color
|
- GBA Video: Fix _mix for 15-bit color
|
||||||
- VFS: Fix VFileReadline and remove _vfdReadline
|
- VFS: Fix VFileReadline and remove _vfdReadline
|
||||||
|
- Qt: Fix font size in memory viewer
|
||||||
Misc:
|
Misc:
|
||||||
- Qt: Window size command line options are now supported
|
- Qt: Window size command line options are now supported
|
||||||
- Qt: Increase usability of key mapper
|
- Qt: Increase usability of key mapper
|
||||||
|
|
|
@ -34,7 +34,11 @@ MemoryModel::MemoryModel(QWidget* parent)
|
||||||
{
|
{
|
||||||
m_font.setFamily("Source Code Pro");
|
m_font.setFamily("Source Code Pro");
|
||||||
m_font.setStyleHint(QFont::Monospace);
|
m_font.setStyleHint(QFont::Monospace);
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
m_font.setPointSize(12);
|
m_font.setPointSize(12);
|
||||||
|
#else
|
||||||
|
m_font.setPointSize(10);
|
||||||
|
#endif
|
||||||
QFontMetrics metrics(m_font);
|
QFontMetrics metrics(m_font);
|
||||||
m_cellHeight = metrics.height();
|
m_cellHeight = metrics.height();
|
||||||
m_letterWidth = metrics.averageCharWidth();
|
m_letterWidth = metrics.averageCharWidth();
|
||||||
|
|
Loading…
Reference in New Issue