diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-01-21 00:32:49 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-21 00:32:49 -0800 |
| commit | 2bcf81fb9ec6150aefe966e1719f73154d348bd4 (patch) | |
| tree | a1f0ace825300db87c79bda2d577db1bd3978be0 /shared-module | |
| parent | b369fa9013d3d0be48bef113811c4acddcd53ba5 (diff) | |
| parent | ab2ad7ba4542c2e133ced64ccb8e9d0b4065e86f (diff) | |
Merge pull request #1479 from siddacious/master
adding height and width to OnDiskBitmap for #1460
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/displayio/OnDiskBitmap.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/shared-module/displayio/OnDiskBitmap.c b/shared-module/displayio/OnDiskBitmap.c index 6e4a4c6f0..aa2ca3e10 100644 --- a/shared-module/displayio/OnDiskBitmap.c +++ b/shared-module/displayio/OnDiskBitmap.c @@ -91,3 +91,11 @@ uint32_t common_hal_displayio_ondiskbitmap_get_pixel(displayio_ondiskbitmap_t *s } return 0; } + +uint16_t common_hal_displayio_ondiskbitmap_get_height(displayio_ondiskbitmap_t *self) { + return self->height; +} + +uint16_t common_hal_displayio_ondiskbitmap_get_width(displayio_ondiskbitmap_t *self) { + return self->width; +} |
