altos/draw: Fix clipping far line end
authorKeith Packard <keithp@keithp.com>
Mon, 27 Feb 2023 02:48:05 +0000 (18:48 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 27 Feb 2023 02:48:05 +0000 (18:48 -0800)
Make sure the final unclipped pixel gets drawn.

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

index 7aa3662d3e4b14f661d30710c758d3c1e2abde15..10c071eb4bdbc3cd77931231e937ff3dde39f0d4 100644 (file)
@@ -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;
 }