rotozoom: switch to using set_dirty_area + write_pixel

This commit is contained in:
Jeff Epler 2021-03-18 09:37:57 -05:00
parent f5fd42c393
commit 95ac6c716b
1 changed files with 1 additions and 1 deletions

View File

@ -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) { 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); uint32_t c = common_hal_displayio_bitmap_get_pixel(source, u, v);
if ((skip_index_none) || (c != skip_index)) { 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; u += duRow;