mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-27 06:08:37 -05:00
Force general refresh on font change
This commit is contained in:
parent
46bf72aa0f
commit
f3d4b8868a
@ -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) {
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user