remove prints
This commit is contained in:
parent
340506be58
commit
0e3cdea51e
@ -330,10 +330,7 @@ STATIC void _refresh_display(displayio_display_obj_t *self) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const displayio_area_t *current_area = _get_refresh_areas(self);
|
const displayio_area_t *current_area = _get_refresh_areas(self);
|
||||||
int i = 0;
|
|
||||||
while (current_area != NULL) {
|
while (current_area != NULL) {
|
||||||
mp_printf(&mp_plat_print, "calling refresh area: %d \n", i);
|
|
||||||
i = i + 1;
|
|
||||||
_refresh_area(self, current_area);
|
_refresh_area(self, current_area);
|
||||||
current_area = current_area->next;
|
current_area = current_area->next;
|
||||||
}
|
}
|
||||||
|
@ -556,23 +556,6 @@ bool displayio_tilegrid_fill_area(displayio_tilegrid_t *self,
|
|||||||
|
|
||||||
void displayio_tilegrid_finish_refresh(displayio_tilegrid_t *self) {
|
void displayio_tilegrid_finish_refresh(displayio_tilegrid_t *self) {
|
||||||
|
|
||||||
//mp_printf(&mp_plat_print, "(cy1: %d)\n", self->current_area.y1);
|
|
||||||
|
|
||||||
//mp_printf(&mp_plat_print, "(px1: %d, py1: %d)\n", self->previous_area.x1, self->previous_area.y1);
|
|
||||||
//mp_printf(&mp_plat_print, "(px2: %d, py2: %d)\n", self->previous_area.x2, self->previous_area.y2);
|
|
||||||
|
|
||||||
//mp_printf(&mp_plat_print, "(cx1: %d, cy1: %d)\n", self->current_area.x1, self->current_area.y1);
|
|
||||||
//mp_printf(&mp_plat_print, "(cx2: %d, cy2: %d)\n", self->current_area.x2, self->current_area.y2);
|
|
||||||
|
|
||||||
|
|
||||||
//mp_printf(&mp_plat_print, "(cx2: %d)\n", self->current_area.x2);
|
|
||||||
//mp_printf(&mp_plat_print, "(cy2: %d)\n", self->current_area.y2);
|
|
||||||
|
|
||||||
//mp_printf(&mp_plat_print, "(cx1: %d, cy1: %d), (cx2: %d, cy2: %d)\n", self->current_area.x1, self->current_area.y1, self->current_area.x2, self->current_area.y2);
|
|
||||||
|
|
||||||
//mp_printf(&mp_plat_print, "x1: %d \n", self->previous_area.x1);
|
|
||||||
//mp_printf(&mp_plat_print, "(x1: %d, y1: %d),(x2: %d, y2: %d)\n", self->previous_area.x1, self->previous_area.y1, self->previous_area.x2, self->previous_area.y2);
|
|
||||||
//mp_printf(&mp_plat_print, "Hello ", 1);
|
|
||||||
bool first_draw = self->previous_area.x1 == self->previous_area.x2;
|
bool first_draw = self->previous_area.x1 == self->previous_area.x2;
|
||||||
bool hidden = self->hidden || self->hidden_by_parent;
|
bool hidden = self->hidden || self->hidden_by_parent;
|
||||||
if (!first_draw && hidden) {
|
if (!first_draw && hidden) {
|
||||||
@ -602,14 +585,10 @@ void displayio_tilegrid_finish_refresh(displayio_tilegrid_t *self) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
displayio_area_t *displayio_tilegrid_get_refresh_areas(displayio_tilegrid_t *self, displayio_area_t *tail) {
|
displayio_area_t *displayio_tilegrid_get_refresh_areas(displayio_tilegrid_t *self, displayio_area_t *tail) {
|
||||||
// mp_printf(&mp_plat_print, "x1 : %d x2: %d \n", self->previous_area.x1, self->previous_area.x2);
|
|
||||||
bool first_draw = self->previous_area.x1 == self->previous_area.x2;
|
bool first_draw = self->previous_area.x1 == self->previous_area.x2;
|
||||||
bool hidden = self->hidden || self->hidden_by_parent;
|
bool hidden = self->hidden || self->hidden_by_parent;
|
||||||
// mp_printf(&mp_plat_print, "first draw: %d\n", first_draw);
|
|
||||||
// Check hidden first because it trumps all other changes.
|
// Check hidden first because it trumps all other changes.
|
||||||
if (hidden) {
|
if (hidden) {
|
||||||
// mp_printf(&mp_plat_print, "rendered_hidden: %d\n", self->rendered_hidden);
|
|
||||||
// if (!self->rendered_hidden){
|
|
||||||
self->rendered_hidden = true;
|
self->rendered_hidden = true;
|
||||||
if (!first_draw) {
|
if (!first_draw) {
|
||||||
self->previous_area.next = tail;
|
self->previous_area.next = tail;
|
||||||
@ -617,7 +596,6 @@ displayio_area_t *displayio_tilegrid_get_refresh_areas(displayio_tilegrid_t *sel
|
|||||||
} else {
|
} else {
|
||||||
return tail;
|
return tail;
|
||||||
}
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
} else if (self->moved && !first_draw) {
|
} else if (self->moved && !first_draw) {
|
||||||
displayio_area_union(&self->previous_area, &self->current_area, &self->dirty_area);
|
displayio_area_union(&self->previous_area, &self->current_area, &self->dirty_area);
|
||||||
|
Loading…
Reference in New Issue
Block a user