diff options
| author | Jeff Epler <jepler@gmail.com> | 2021-03-18 09:09:29 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2021-03-18 09:20:56 -0500 |
| commit | 36d608aa67229653c0be12fab407533d0d8b7d32 (patch) | |
| tree | e2e87ac90efe034da2be78c93a2699e6d4600162 /shared-module/displayio/Bitmap.h | |
| parent | 3b506f0fa59872916b617083a3dad9cadd07c428 (diff) | |
displayio_bitmap_set_dirty_area: rewrite in terms of displayio_area
.. simplifying code in the process. For instance, now fill_region
uses area routines to order and constrain its coordinates.
Happily, this change also frees a modest amount of code space.
Diffstat (limited to 'shared-module/displayio/Bitmap.h')
| -rw-r--r-- | shared-module/displayio/Bitmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-module/displayio/Bitmap.h b/shared-module/displayio/Bitmap.h index c1ce9612b..82a3de631 100644 --- a/shared-module/displayio/Bitmap.h +++ b/shared-module/displayio/Bitmap.h @@ -49,7 +49,7 @@ typedef struct { void displayio_bitmap_finish_refresh(displayio_bitmap_t *self); displayio_area_t *displayio_bitmap_get_refresh_areas(displayio_bitmap_t *self, displayio_area_t *tail); -void displayio_bitmap_set_dirty_area(displayio_bitmap_t *self, int16_t x1, int16_t y1, int16_t x2, int16_t y2); +void displayio_bitmap_set_dirty_area(displayio_bitmap_t *self, const displayio_area_t *area); void displayio_bitmap_write_pixel(displayio_bitmap_t *self, int16_t x, int16_t y, uint32_t value); #endif // MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_BITMAP_H |
