1
0
Fork 0
wasp-os/wasp
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
..
apps draw565: Add width to the line drawing function 2020-12-27 08:52:54 +00:00
boards tests: Auto-discover applications and try to switch to them 2020-12-26 18:07:45 +00:00
drivers boards: simulator: Improve spi.write() simulation 2020-12-12 12:57:06 +00:00
fonts fonts: Add sans28 (numerals only) 2020-06-11 20:37:03 +01:00
modules wasp: apps: Step counter application 2020-06-09 21:31:55 +01:00
boot.py Add licensing information for all wasp-os files. 2020-03-22 15:40:18 +00:00
draw565.py draw565: Add width to the line drawing function 2020-12-27 08:52:54 +00:00
gadgetbridge.py Notify level in settings app 2020-11-29 20:20:03 +00:00
icons.py apps: pager: notifications: Added remove all notifications dialog 2020-11-29 09:12:03 +00:00
logo.py Add licensing information for all wasp-os files. 2020-03-22 15:40:18 +00:00
main.py Introduction basic notification support 2020-07-19 20:50:33 +01:00
ppg.py ppg: Pull the PPG signal processing into a seperate library 2020-06-25 21:59:32 +01:00
requirements.txt simulator: Introduce fully automatic testint 2020-12-04 20:11:41 +00:00
shell.py Add licensing information for all wasp-os files. 2020-03-22 15:40:18 +00:00
wasp.py widgets: BatteryMeter: Fix theme handling 2020-12-13 16:51:07 +00:00
widgets.py widgets: BatteryMeter: Fix theme handling 2020-12-13 16:51:07 +00:00