Minor changes

master
David Peer 2023-01-08 16:55:37 +01:00
parent 856ca654fa
commit 2165941e1b
1 changed files with 4 additions and 2 deletions

View File

@ -155,7 +155,8 @@ let clockInfoMenu = clock_info.addInteractive(clockInfoItems, {
// Set text and font // Set text and font
if(isLarge){ if(isLarge){
// In case we are in focus and the focus box changes (fullscreen yes/no) // In case we are in focus and the focus box changes (fullscreen yes/no)
// we draw the time again. // we draw the time again. Otherwise it could happen that a while line is
// not cleared correctly.
if(options.focus) drawTime(); if(options.focus) drawTime();
return; return;
} }
@ -181,7 +182,8 @@ let clockInfoMenu = clock_info.addInteractive(clockInfoItems, {
g.drawString(text, midx+parseInt(imgWidth*1.3/2), options.y+20); g.drawString(text, midx+parseInt(imgWidth*1.3/2), options.y+20);
// In case we are in focus and the focus box changes (fullscreen yes/no) // In case we are in focus and the focus box changes (fullscreen yes/no)
// we draw the time again. // we draw the time again. Otherwise it could happen that a while line is
// not cleared correctly.
if(options.focus) drawTime(); if(options.focus) drawTime();
} }
}); });