Missing table invalidate

This commit is contained in:
Bertrand Songis
2020-05-18 13:35:43 +02:00
parent a16fe0a89e
commit d9c721f7d0
+4 -1
View File
@@ -91,7 +91,10 @@ class Table: public Window {
void setLineFlags(uint8_t index, LcdFlags flags)
{
lines[index].flags = flags;
if (lines[index].flags != flags) {
lines[index].flags = flags;
invalidate({0, index * TABLE_LINE_HEIGHT, width(), TABLE_LINE_HEIGHT});
}
}
void clear()