diff --git a/src/driver/glcd/glcd.h b/src/driver/glcd/glcd.h index 9696a3c0e..bba426a2a 100644 --- a/src/driver/glcd/glcd.h +++ b/src/driver/glcd/glcd.h @@ -233,6 +233,8 @@ class cGLCD bool dumpBuffer(fb_pixel_t *s, int format, const char *filename); void UpdateBrightness(); int handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data); + + void ReInitFont() { fonts_initialized = false; }; }; #endif #endif diff --git a/src/gui/glcdsetup.cpp b/src/gui/glcdsetup.cpp index 64f4ccde8..efe7e7abd 100644 --- a/src/gui/glcdsetup.cpp +++ b/src/gui/glcdsetup.cpp @@ -174,7 +174,7 @@ int GLCD_Menu::exec(CMenuTarget* parent, const std::string & actionKey) if (fileBrowser.exec(FONTDIR) == true) { t.glcd_font = fileBrowser.getSelectedFile()->Name; - cglcd->Rescan(); + cglcd->ReInitFont(); } return res; }