mirror of https://github.com/periph/devices
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
When the destination rectangle didn't start at (0,0) or cover the whole display the Dev.Draw function would continue to update the display in full. Obviously that didn't result in a good output. This change updates the drawing logic to only update the affected area (aligned to whole bytes on the horizontal axis) and limits the amount of transferred data to the minimum needed to cover the destination rectangle. The calculation of the various offsets as well as the function sending the image data are written to support unittesting. Signed-off-by: Michael Hanselmann <public@hansmi.ch> |
4 years ago | |
|---|---|---|
| .. | ||
| doc.go | 5 years ago | |
| drawing.go | 4 years ago | |
| drawing_test.go | 4 years ago | |
| errorhandler.go | 4 years ago | |
| example_test.go | 5 years ago | |
| waveshare213v2.go | 4 years ago | |