diff options
| author | Jeff Epler <jepler@gmail.com> | 2021-03-18 09:37:57 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2021-03-19 20:40:23 -0500 |
| commit | 95ac6c716b1f4e9172005b9f8b287d6a4c31836b (patch) | |
| tree | 1187382aecb5fa1659683e799f5bc34bf49577aa | |
| parent | f5fd42c39340483bc781746fd0acd304abd888ae (diff) | |
rotozoom: switch to using set_dirty_area + write_pixel
| -rw-r--r-- | shared-module/bitmaptools/__init__.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-module/bitmaptools/__init__.c b/shared-module/bitmaptools/__init__.c index 1c7f36ca2..dd3954999 100644 --- a/shared-module/bitmaptools/__init__.c +++ b/shared-module/bitmaptools/__init__.c @@ -205,7 +205,7 @@ void common_hal_bitmaptools_rotozoom(displayio_bitmap_t *self, int16_t ox, int16 if (u >= source_clip0_x && u < source_clip1_x && v >= source_clip0_y && v < source_clip1_y) { uint32_t c = common_hal_displayio_bitmap_get_pixel(source, u, v); if ((skip_index_none) || (c != skip_index)) { - common_hal_displayio_bitmap_set_pixel(self, x, y, c); + displayio_bitmap_write_pixel(self, x, y, c); } } u += duRow; |
