projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a79e8d
)
altos/draw: Fix clipping far line end
author
Keith Packard
<keithp@keithp.com>
Mon, 27 Feb 2023 02:48:05 +0000
(18:48 -0800)
committer
Keith 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
patch
|
blob
|
history
diff --git
a/src/draw/ao_line.c
b/src/draw/ao_line.c
index 7aa3662d3e4b14f661d30710c758d3c1e2abde15..10c071eb4bdbc3cd77931231e937ff3dde39f0d4 100644
(file)
--- 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;
}