From: Keith Packard Date: Mon, 27 Feb 2023 02:48:05 +0000 (-0800) Subject: altos/draw: Fix clipping far line end X-Git-Tag: 1.9.16~1^2~29 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=bc17e4ed423c75624115ee3921aee2111ec1139b altos/draw: Fix clipping far line end Make sure the final unclipped pixel gets drawn. Signed-off-by: Keith Packard --- diff --git a/src/draw/ao_line.c b/src/draw/ao_line.c index 7aa3662d..10c071eb 100644 --- a/src/draw/ao_line.c +++ b/src/draw/ao_line.c @@ -234,6 +234,7 @@ ao_clip_line(struct ao_cc *c, struct ao_cbox *b) c->major = (int16_t) (c->major + c->sign_major * adjust_major); c->minor = (int16_t) (c->minor + c->sign_minor * adjust_minor); + c->first = true; /* signal to extend len */ return true; }