diff --git a/src/AppFrame.cpp b/src/AppFrame.cpp index 2a6fd45..223fb7b 100644 --- a/src/AppFrame.cpp +++ b/src/AppFrame.cpp @@ -923,12 +923,18 @@ void AppFrame::OnMenu(wxCommandEvent& event) { //Display : font sizes else if (event.GetId() == wxID_DISPLAY_BASE) { GLFont::setScale(GLFont::GLFONT_SCALE_NORMAL); + //force all windows refresh + Refresh(); } else if (event.GetId() == wxID_DISPLAY_BASE + 1) { GLFont::setScale(GLFont::GLFONT_SCALE_MEDIUM); + //force all windows refresh + Refresh(); } else if (event.GetId() == wxID_DISPLAY_BASE + 2) { GLFont::setScale(GLFont::GLFONT_SCALE_LARGE); + //force all windows refresh + Refresh(); } if (event.GetId() >= wxID_SETTINGS_BASE && event.GetId() < settingsIdMax) { diff --git a/src/util/GLFont.cpp b/src/util/GLFont.cpp index deb56ac..0be4e57 100644 --- a/src/util/GLFont.cpp +++ b/src/util/GLFont.cpp @@ -223,8 +223,6 @@ void GLFont::loadFontOnce() { //full font file path wxFileName fontFileName = wxFileName(resourceFolder + L"/" + fontFile); - - // wxFileName fontFileName = wxFileName(resourceFolder, fontFile); if (!fontFileName.Exists()) { wxFileName exePath = wxFileName(wxStandardPaths::Get().GetExecutablePath());