- glcd: fix change of font

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2020-07-04 21:31:23 +02:00
committed by Thilo Graf
parent aa6c78eaa6
commit f48699e08b
2 changed files with 3 additions and 1 deletions

View File

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

View File

@@ -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;
}