From ad0bc0ceebfbdf1d9ec7f60203b231841e384a6a Mon Sep 17 00:00:00 2001 From: alice Date: Mon, 8 Jul 2024 20:25:46 +0100 Subject: [PATCH] Fix elli and ellib in wren --- src/api/wren.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api/wren.c b/src/api/wren.c index 4bcc3c40d..dd6a18543 100644 --- a/src/api/wren.c +++ b/src/api/wren.c @@ -95,6 +95,8 @@ class TIC {\n\ foreign static line(x0, y0, x1, y1, color)\n\ foreign static circ(x, y, radius, color)\n\ foreign static circb(x, y, radius, color)\n\ + foreign static elli(x, y, a, b, color)\n\ + foreign static ellib(x, y, a, b, color)\n\ foreign static rect(x, y, w, h, color)\n\ foreign static rectb(x, y, w, h, color)\n\ foreign static tri(x1, y1, x2, y2, x3, y3, color)\n\ @@ -1542,6 +1544,8 @@ static WrenForeignMethodFn foreignTicMethods(const char* signature) if (strcmp(signature, "static TIC.line(_,_,_,_,_)" ) == 0) return wren_line; if (strcmp(signature, "static TIC.circ(_,_,_,_)" ) == 0) return wren_circ; if (strcmp(signature, "static TIC.circb(_,_,_,_)" ) == 0) return wren_circb; + if (strcmp(signature, "static TIC.elli(_,_,_,_,_)" ) == 0) return wren_elli; + if (strcmp(signature, "static TIC.ellib(_,_,_,_,_)" ) == 0) return wren_ellib; if (strcmp(signature, "static TIC.rect(_,_,_,_,_)" ) == 0) return wren_rect; if (strcmp(signature, "static TIC.rectb(_,_,_,_,_)" ) == 0) return wren_rectb; if (strcmp(signature, "static TIC.tri(_,_,_,_,_,_,_)" ) == 0) return wren_tri;