altos/draw: Add validation for line drawing
authorKeith Packard <keithp@keithp.com>
Mon, 27 Feb 2023 02:46:09 +0000 (18:46 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 27 Feb 2023 02:46:09 +0000 (18:46 -0800)
commit4fa489276826e33fa5e21d0a94a8ed3e29ebcfd0
tree4e05c02f3c74cd1d966efe5e32df7a4d5b17bd88
parentd804a00a7576d5e3c59c413762248787a1282c16
altos/draw: Add validation for line drawing

Just make sure it never draws outside the dest.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/draw/ao_line.c