summaryrefslogtreecommitdiff
path: root/shared-module/displayio/Bitmap.c
AgeCommit message (Collapse)Author
2021-03-20Merge pull request #4432 from jepler/bitmap-dirty-improvementsJeff Epler
Bitmap dirty improvements
2021-03-18displayio: Move bitmap read-only checking to displayio_bitmap_set_dirty_areaJeff Epler
This is a modest code savings, but more importantly it reduces boilerplate in bitmap-modifying routines. Callers need only ensure they call displayio_bitmap_set_dirty_area in advance of the bitmap modifications they perform. (note that this assumes that no bitmap operation can enter background tasks. If an operation COULD enter background tasks, it MUST re-dirty the area it touches when it exits, simply by a fresh call to set_dirty_area with the same area as before)
2021-03-18displayio_bitmap_set_dirty_area: rewrite in terms of displayio_areaJeff Epler
.. 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.
2021-03-17displayio.Bitmap: Make memoryview()ableJeff Epler
2021-03-15run code formatting scriptmicroDev
2021-03-07refactor displayio set_pixel for use in bitmap_toolsKevin Matocha
2021-02-26fix two off by one errorsKevin Matocha
2021-02-25Update for clean blitting into itselfKevin Matocha
2020-08-21Merge adafruit/main latestKevin Matocha
2020-08-21Merge with latest adafruit/mainKevin Matocha
2020-08-14deleted whitespaceKevin Matocha
2020-08-14deleted whitespaceKevin Matocha
2020-08-14Deleted trailing whitespaceKevin Matocha
2020-08-14Added inclusive indexing for x2,y2, fixed default value handling for x1,y1, ↵Kevin Matocha
added bitmap palette comparison
2020-08-14Added bitmap.blit function for bitmap slice copyMargaret Matocha
2020-08-14Added bitmap.blit function for copying slices of bitmapsMargaret Matocha
2020-08-07Adding bitmap.insert to copy a slice of a source bitmap into another bitmapMargaret Matocha
2020-08-07Added bitmap.insert function for slice copy into a bitmap from another bitmapMargaret Matocha
2020-04-13make packed word and copy it incaternuson
2020-04-09add docstring, clean upcaternuson
2020-04-09initial working fillcaternuson
2019-07-18Track a dirty area for in-memory bitmapsScott Shawcroft
This fixes the bug that bitmap changes do not cause screen updates and optimizes the refresh when the bitmap is simply shown on the screen. If the bitmap is used in tiles, then changing it will cause all TileGrids using it to do a full refresh. Fixes #1981
2019-04-04Support multi-byte values with BitmapScott Shawcroft
It also corrects the behavior of single byte values. Fixes #1744
2019-02-11A variety of displayio improvementsScott Shawcroft
This changes a number of things in displayio: * Introduces BuiltinFont and Glyph so the built in font can be used by libraries. For boards with a font it is available as board.TERMINAL_FONT. Fixes #1172 * Remove _load_row from Bitmap in favor of bitmap[] access. Index can be x/y tuple or overall index. Fixes #1191 * Add width and height properties to Bitmap. * Add insert and [] access to Group. Fixes #1518 * Add index param to pop on Group. * Terminal no longer takes unicode character info. It takes a BuiltinFont instead. * Fix Terminal's handling of [###D vt100 commands used when up arrowing into repl history. * Add x and y positions to Group plus scale as well. * Add bitmap accessor for BuiltinFont
2018-09-06Minor tweaks based on feedbackScott Shawcroft
2018-08-31Tweaks based on feedbackScott Shawcroft
2018-08-31Introduce displayio to render graphics to displays.Scott Shawcroft
It's designed to minimize RAM footprint by using Sprites to represent objects on the screen. The object model also facilitates partial screen updating which reduces the bandwidth needed to display. This is all handled in C. Python simply manipulates the objects with the ability to synchronize to frame timing.