Fixed initScreen for lockscreen (digits missing)
This commit is contained in:
@@ -57,9 +57,11 @@ void Lockscreen::initScreen()
|
|||||||
|
|
||||||
espgui::tft.setTextFont(7);
|
espgui::tft.setTextFont(7);
|
||||||
|
|
||||||
drawRect(0, 1, TFT_YELLOW);
|
drawRect(m_currentIndex, 1, TFT_YELLOW);
|
||||||
drawRect(0, 2, TFT_YELLOW);
|
drawRect(m_currentIndex, 2, TFT_YELLOW);
|
||||||
m_labels[0].redraw(std::to_string(m_numbers[0]));
|
|
||||||
|
for(int i = 0; i <= m_currentIndex; i++)
|
||||||
|
m_labels[i].redraw(std::to_string(m_numbers[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Lockscreen::update()
|
void Lockscreen::update()
|
||||||
|
Reference in New Issue
Block a user