use full_change instead of moved
This commit is contained in:
parent
9adb77a2d0
commit
46c9b28dd8
@ -84,14 +84,14 @@ bool common_hal_displayio_tilegrid_get_hidden(displayio_tilegrid_t* self) {
|
|||||||
void common_hal_displayio_tilegrid_set_hidden(displayio_tilegrid_t* self, bool hidden) {
|
void common_hal_displayio_tilegrid_set_hidden(displayio_tilegrid_t* self, bool hidden) {
|
||||||
self->hidden = hidden;
|
self->hidden = hidden;
|
||||||
if(!hidden){
|
if(!hidden){
|
||||||
self->moved = true;
|
self->full_change = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void displayio_tilegrid_set_hidden_by_parent(displayio_tilegrid_t *self, bool hidden) {
|
void displayio_tilegrid_set_hidden_by_parent(displayio_tilegrid_t *self, bool hidden) {
|
||||||
self->hidden_by_parent = hidden;
|
self->hidden_by_parent = hidden;
|
||||||
if(!hidden){
|
if(!hidden){
|
||||||
self->moved = true;
|
self->full_change = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user