Restore DisplaySize code

This commit is contained in:
Theo Arends 2021-03-20 18:11:52 +01:00
parent 883feea7cb
commit 70b7e2fc2a
1 changed files with 5 additions and 3 deletions

View File

@ -1864,9 +1864,11 @@ void CmndDisplayScrollText(void)
void CmndDisplaySize(void)
{
Settings.display_size = XdrvMailbox.payload;
if (renderer) renderer->setTextSize(Settings.display_size);
//else DisplaySetSize(Settings.display_size);
if ((XdrvMailbox.payload > 0) && (XdrvMailbox.payload <= 4)) {
Settings.display_size = XdrvMailbox.payload;
if (renderer) renderer->setTextSize(Settings.display_size);
//else DisplaySetSize(Settings.display_size);
}
ResponseCmndNumber(Settings.display_size);
}