summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2018-02-03 22:41:26 -0600
committerepoch <epoch@hacking.allowed.org>2018-02-03 22:41:26 -0600
commit625a993afefe1867f42ff4b126b67d5b7bddec7c (patch)
tree722705a911a54d0a0b91276a98a0eeb53f7c33c1
parent7244d243659c509ae7ee727942c2a233b7690b4e (diff)
downloadhackvr-625a993afefe1867f42ff4b126b67d5b7bddec7c.tar.gz
hackvr-625a993afefe1867f42ff4b126b67d5b7bddec7c.zip
graphics_c2 was not properly handling the second point in a circle
-rw-r--r--src/graphics_c2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphics_c2.c b/src/graphics_c2.c
index 00d3d70..d78f87b 100644
--- a/src/graphics_c2.c
+++ b/src/graphics_c2.c
@@ -25,7 +25,7 @@ void draw_c2_shape(c2_s_t s) {
cs_s_t ss;
ss.len=s.len;
ss.id=s.id;
- for(i=0;i<s.len;i++) {
+ for(i=0;i<s.len+(s.len==1);i++) {
ss.p[i]=c2_to_cs(s.p[i]);
}
draw_cs_shape(ss);
@@ -36,7 +36,7 @@ void draw_c2_filled_shape(c2_s_t s) {
cs_s_t ss;
ss.len=s.len;
ss.id=s.id;
- for(i=0;i<s.len;i++) {
+ for(i=0;i<s.len+(s.len==1);i++) {
ss.p[i]=c2_to_cs(s.p[i]);
}
draw_cs_filled_shape(ss);