diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-08-22 00:33:27 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2019-08-22 14:25:46 -0700 |
| commit | 8d836fa248d10b8943945423a069a3fba387f8a2 (patch) | |
| tree | bd1b021c0e339139fda5eadcf78ef5c4b5200b1b /shared-module/displayio/display_core.c | |
| parent | 9993a999065d81282df67bacceda4056a404f05f (diff) | |
Regular display fixes including refresh tweaks
Diffstat (limited to 'shared-module/displayio/display_core.c')
| -rw-r--r-- | shared-module/displayio/display_core.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/shared-module/displayio/display_core.c b/shared-module/displayio/display_core.c index 24d8ab51f..88878866a 100644 --- a/shared-module/displayio/display_core.c +++ b/shared-module/displayio/display_core.c @@ -82,8 +82,8 @@ void displayio_display_core_construct(displayio_display_core_t* self, self->width = width; self->height = height; - self->ram_width = width; - self->ram_height = height; + self->ram_width = ram_width; + self->ram_height = ram_height; rotation = rotation % 360; self->transform.x = 0; self->transform.y = 0; @@ -206,7 +206,7 @@ void displayio_display_core_set_region_to_update(displayio_display_core_t* self, data[0] = column_command; uint8_t data_length = 1; if (!data_as_commands) { - self->send(self->bus, true, true, data, 1); + self->send(self->bus, true, false, data, 1); data_length = 0; } if (self->ram_width < 0x100) { @@ -227,11 +227,14 @@ void displayio_display_core_set_region_to_update(displayio_display_core_t* self, self->send(self->bus, false, always_toggle_chip_select, data, data_length / 2); } + displayio_display_core_end_transaction(self); + displayio_display_core_begin_transaction(self); + // Set row. data[0] = row_command; data_length = 1; if (!data_as_commands) { - self->send(self->bus, true, true, data, 1); + self->send(self->bus, true, false, data, 1); data_length = 0; } if (self->ram_height < 0x100) { |
