Force general refresh on font change

This commit is contained in:
vsonnier 2016-06-20 18:29:56 +02:00
parent 46bf72aa0f
commit f3d4b8868a
2 changed files with 6 additions and 2 deletions

View File

@ -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) {

View File

@ -224,8 +224,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());