diff options
| author | Kevin Matocha <kmatocha@icloud.com> | 2021-03-19 21:23:55 -0500 |
|---|---|---|
| committer | Kevin Matocha <kmatocha@icloud.com> | 2021-03-19 21:23:55 -0500 |
| commit | 9b188934d1c7d11dbfcfb2131692233690d19e93 (patch) | |
| tree | 8f7ec7dbe23ede5b2a66cee4b1100822f5f6850e /shared-module | |
| parent | 39500cdeab1f5eb197bd0f2dd0015e7c30c54b05 (diff) | |
off by one error in rotozoom dirty_area
Diffstat (limited to 'shared-module')
| -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 dd3954999..2f70e4334 100644 --- a/shared-module/bitmaptools/__init__.c +++ b/shared-module/bitmaptools/__init__.c @@ -195,7 +195,7 @@ void common_hal_bitmaptools_rotozoom(displayio_bitmap_t *self, int16_t ox, int16 float rowu = startu + miny * duCol; float rowv = startv + miny * dvCol; - displayio_area_t dirty_area = {minx, miny, maxx, maxy}; + displayio_area_t dirty_area = {minx, miny, maxx + 1, maxy + 1}; displayio_bitmap_set_dirty_area(self, &dirty_area); for (y = miny; y <= maxy; y++) { |
