From 8d621a18035ced95cb00e7b0c486aa44e2ee48b5 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Sat, 11 Jan 2014 02:32:22 -0800 Subject: [PATCH] MGR: Fix tiny font problem in Statistics tab when monitor dpi is set to 125% of normal on MS Windows --- clientgui/ViewStatistics.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/clientgui/ViewStatistics.cpp b/clientgui/ViewStatistics.cpp index 680cf4d398..55aa59d5cb 100644 --- a/clientgui/ViewStatistics.cpp +++ b/clientgui/ViewStatistics.cpp @@ -1162,9 +1162,11 @@ void CPaintStatistics::DrawAll(wxDC &dc) { dc.SetTextForeground (m_pen_HeadTextColour); dc.SetTextBackground (GetBackgroundColour ()); - m_font_standart = dc.GetFont(); - m_font_bold = dc.GetFont(); - m_font_standart_italic = dc.GetFont(); + // The next 3 lines seem unnecessary and cause problems + // when monitor dpi is set to 125% of normal on MS Windows. +// m_font_standart = dc.GetFont(); +// m_font_bold = dc.GetFont(); +// m_font_standart_italic = dc.GetFont(); m_font_standart.SetWeight(wxNORMAL); m_font_bold.SetWeight(wxBOLD);