set moved true when unhiding tilegrid
This commit is contained in:
parent
cf21c4da60
commit
9adb77a2d0
@ -83,10 +83,16 @@ 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){
|
||||||
|
self->moved = 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){
|
||||||
|
self->moved = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool displayio_tilegrid_get_previous_area(displayio_tilegrid_t *self, displayio_area_t* area) {
|
bool displayio_tilegrid_get_previous_area(displayio_tilegrid_t *self, displayio_area_t* area) {
|
||||||
|
Loading…
Reference in New Issue
Block a user