Re-add periodic refresh on topbar and layout
This commit is contained in:
@@ -198,11 +198,11 @@ void Layout::checkEvents()
|
|||||||
LayoutBase::checkEvents();
|
LayoutBase::checkEvents();
|
||||||
decorate();
|
decorate();
|
||||||
|
|
||||||
// uint32_t now = RTOS_GET_MS();
|
uint32_t now = RTOS_GET_MS();
|
||||||
// if (now - lastRefresh >= LAYOUT_REFRESH) {
|
if (now - lastRefresh >= LAYOUT_REFRESH) {
|
||||||
// lastRefresh = now;
|
lastRefresh = now;
|
||||||
// invalidate();
|
invalidate();
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Layout::decorate()
|
void Layout::decorate()
|
||||||
|
|||||||
@@ -165,9 +165,9 @@ void TopBar::paint(BitmapBuffer * dc)
|
|||||||
|
|
||||||
void TopBar::checkEvents()
|
void TopBar::checkEvents()
|
||||||
{
|
{
|
||||||
// uint32_t now = RTOS_GET_MS();
|
uint32_t now = RTOS_GET_MS();
|
||||||
// if (now - lastRefresh >= TOPBAR_REFRESH) {
|
if (now - lastRefresh >= TOPBAR_REFRESH) {
|
||||||
// lastRefresh = now;
|
lastRefresh = now;
|
||||||
// invalidate();
|
invalidate();
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user