Performance improvements
parent
a3c5a723bc
commit
856ca654fa
|
|
@ -154,7 +154,9 @@ let clockInfoMenu = clock_info.addInteractive(clockInfoItems, {
|
||||||
|
|
||||||
// Set text and font
|
// Set text and font
|
||||||
if(isLarge){
|
if(isLarge){
|
||||||
drawTime();
|
// In case we are in focus and the focus box changes (fullscreen yes/no)
|
||||||
|
// we draw the time again.
|
||||||
|
if(options.focus) drawTime();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -178,7 +180,9 @@ 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);
|
||||||
|
|
||||||
drawTime();
|
// In case we are in focus and the focus box changes (fullscreen yes/no)
|
||||||
|
// we draw the time again.
|
||||||
|
if(options.focus) drawTime();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue