diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2020-05-18 14:37:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-18 14:37:05 -0700 |
| commit | 2e950a059cf732ebdeb8bb77251aaef79e4ef8c4 (patch) | |
| tree | 2f5fcd0c75e7eee72c0c4f2310a70760d269c647 /shared-module/vectorio/Polygon.h | |
| parent | 2314f988b180615439635ec30e81f80085724c2f (diff) | |
| parent | a78f245ea649c2bf67e2748d068b531b352cc4aa (diff) | |
Merge pull request #2888 from WarriorOfWire/vectorio-polygon-speed
vectorio: speed up polygon
Diffstat (limited to 'shared-module/vectorio/Polygon.h')
| -rw-r--r-- | shared-module/vectorio/Polygon.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shared-module/vectorio/Polygon.h b/shared-module/vectorio/Polygon.h index 1aef854a7..70de9036d 100644 --- a/shared-module/vectorio/Polygon.h +++ b/shared-module/vectorio/Polygon.h @@ -8,8 +8,9 @@ typedef struct { mp_obj_base_t base; - // A micropython List[ x, y, ... ] - mp_obj_t points_list; + // An int array[ x, y, ... ] + int *points_list; + size_t len; vectorio_event_t on_dirty; } vectorio_polygon_t; |
