1
0
Fork 0
wasp-os/wasp
Daniel Thompson 1cb1d96ef4 boards: simulator: Pick up out-of-bounds drawing
Currently, if we ask the simulator to draw out-of-bounds then it will
do exactly that, it will draw outside of the "screen" and corrupt the
pixels of the watch frame that surrounds it. This is an obviously poor
simulation of the real watch and when the out-of-bounds error is only
an out-by-one error can be easily overlooked until we load the code on
the device.

Let's just throw an exception if we draw out-of-bounds. That can easily
be picked up during testing.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-25 07:36:15 +00:00
..
apps apps: settings: Clamp the dates a little more tightly 2021-02-20 08:42:16 +00:00
boards boards: simulator: Pick up out-of-bounds drawing 2021-02-25 07:36:15 +00:00
drivers st7789: Fix incorrect variable name in ST7789_SPIs. __init__ docstring. 2021-02-20 08:46:59 +00:00
fonts icons, fonts.digits: Switch over to 2-bit RLE encoding 2020-12-28 12:01:15 +00:00
modules bma42x-upy: Implement step counter reset 2020-12-30 09:56:22 +00:00
boot.py Add licensing information for all wasp-os files. 2020-03-22 15:40:18 +00:00
draw565.py drivers: draw565: Added bounding_box() function that returns the size of a string. 2021-02-05 16:42:01 +02:00
gadgetbridge.py Notify level in settings app 2020-11-29 20:20:03 +00:00
icons.py apps: musicplayer: Adopt GfxButton and use it for trace fwd/back 2021-01-18 21:55:02 +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 install: Include the wasptool dependencies in the install guide 2021-01-30 12:55:28 +00:00
shell.py Add licensing information for all wasp-os files. 2020-03-22 15:40:18 +00:00
steplogger.py steplogger: Add iterator to allow UI to read the data 2021-02-21 21:24:24 +00:00
wasp.py system: Move free memory capture into the switch method 2021-01-15 20:07:09 +00:00
widgets.py widgets: Add a button with a graphical icon 2021-01-18 21:52:55 +00:00