summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);