Re-enable partial updates when available

This commit is contained in:
Scott Shawcroft 2023-04-24 16:24:33 -07:00
parent b16037859c
commit 87fc5eff26
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA

View File

@ -139,7 +139,8 @@ STATIC const displayio_area_t *displayio_epaperdisplay_get_refresh_areas(display
if (self->core.current_group != NULL) { if (self->core.current_group != NULL) {
first_area = displayio_group_get_refresh_areas(self->core.current_group, NULL); first_area = displayio_group_get_refresh_areas(self->core.current_group, NULL);
} }
if (first_area != NULL) { if (first_area != NULL && self->core.row_command == NO_COMMAND) {
// Do a full refresh if the display doesn't support partial updates.
self->core.area.next = NULL; self->core.area.next = NULL;
return &self->core.area; return &self->core.area;
} }