From ebc7c2e50f47124e9133031052b5d18f63ab8bfa Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 1 Nov 2015 23:01:31 -0800 Subject: [PATCH] Qt: Fix font size in memory viewer --- CHANGES | 1 + src/platform/qt/MemoryModel.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGES b/CHANGES index c525c5f15..4b2b2c8d2 100644 --- a/CHANGES +++ b/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 diff --git a/src/platform/qt/MemoryModel.cpp b/src/platform/qt/MemoryModel.cpp index b16018646..343883f6a 100644 --- a/src/platform/qt/MemoryModel.cpp +++ b/src/platform/qt/MemoryModel.cpp @@ -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();