Skip to content

Commit

Permalink
pixel addressing
Browse files Browse the repository at this point in the history
  • Loading branch information
tannewt committed Jan 19, 2024
1 parent 53f3e84 commit c359fab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared-module/displayio/bus_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ void displayio_display_bus_set_region_to_update(displayio_display_bus_t *self, d
if (display->colorspace.depth < 8) {
uint8_t pixels_per_byte = 8 / display->colorspace.depth;
if (display->colorspace.pixels_in_byte_share_row) {
x1 /= pixels_per_byte * display->colorspace.bytes_per_cell;
x2 /= pixels_per_byte * display->colorspace.bytes_per_cell;
// x1 /= pixels_per_byte * display->colorspace.bytes_per_cell;
// x2 /= pixels_per_byte * display->colorspace.bytes_per_cell;
} else {
y1 /= pixels_per_byte * display->colorspace.bytes_per_cell;
y2 /= pixels_per_byte * display->colorspace.bytes_per_cell;
Expand Down

0 comments on commit c359fab

Please sign in to comment.