wasp-os/wasp/apps
Daniel Thompson 8c03ddbb7a draw565: Add width to the line drawing function
Currently all lines are a single pixel wide. To draw wider lines we
must draw two parallel lines with a single pixel offset and this is
a *very* inefficient approach, espeically on ST7789 where we spend
longer setting the clipping window than we do drawing each pixel.

Fix this by constructing a line using a variable sized square rather than
a single pixel. This will "overdraw" (some pixels will be drawn more than
once) but since square blocks can be efficiently transferred to the
display the overdraw is acceptable.

Note: It is a difficult decision whether to maintain the convention that
      color is the last argument or to keep compatibility with existing
      line drawing tests. This patch opts for the former and fixes up
      all uses within the existing codebase.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-12-27 08:52:54 +00:00
..
alarm.py apps: alarm: Fix touch handling when the alarm is ringing 2020-11-29 19:14:31 +00:00
clock.py apps: clock: Fix theme handling 2020-12-13 16:51:07 +00:00
demo.py apps: demo: Move the logo into the demo app 2020-05-17 14:37:44 +01:00
fibonacci_clock.py docs: Add an Application Library chapter 2020-11-08 14:28:38 +00:00
flashlight.py README: Add a (fairly) comprehensive screenshot tour 2020-08-16 18:48:15 +01:00
gameoflife.py docs: Add an Application Library chapter 2020-11-08 14:28:38 +00:00
haiku.py apps: haiku: Add a simple Haiku viewer 2020-10-10 12:12:59 +01:00
heart.py README: Add a (fairly) comprehensive screenshot tour 2020-08-16 18:48:15 +01:00
hello.py docs: Introduce the Application Writer's Guide. 2020-05-11 21:44:30 +01:00
launcher.py README: Add a (fairly) comprehensive screenshot tour 2020-08-16 18:48:15 +01:00
musicplayer.py apps: music: Add to application index 2020-11-22 09:22:50 +00:00
pager.py apps: pager: notifications: improve swipe handling 2020-11-29 09:12:14 +00:00
settings.py apps: settings: Add Scroll Indicator 2020-12-05 20:51:27 +00:00
snake.py apps: snake: Remove redundant import 2020-12-12 18:15:33 +00:00
steps.py apps: steps: Use the alarm system to reset the step counter at midnight 2020-11-14 12:25:32 +00:00
stopwatch.py manager: Introduce shared "system bar" 2020-11-04 19:00:37 +00:00
template.py docs: Introduce the Application Writer's Guide. 2020-05-11 21:44:30 +01:00
testapp.py draw565: Add width to the line drawing function 2020-12-27 08:52:54 +00:00