From 38478b3359a321d6a606e7c2f39974fd53f73ca4 Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Sat, 18 Feb 2023 11:38:25 +0100 Subject: [PATCH] Add sides arg to gpu.drawCircle --- Capy64/Runtime/Libraries/GPU.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Capy64/Runtime/Libraries/GPU.cs b/Capy64/Runtime/Libraries/GPU.cs index d479b79..ccd6335 100644 --- a/Capy64/Runtime/Libraries/GPU.cs +++ b/Capy64/Runtime/Libraries/GPU.cs @@ -281,10 +281,11 @@ public class GPU : IComponent var y = (int)L.CheckNumber(2) - 1; var rad = (int)L.CheckNumber(3); var c = L.CheckInteger(4); - var s = (int)L.OptNumber(5, 1); + var t = (int)L.OptNumber(5, 1); + var s = (int)L.OptInteger(6, -1); Utils.UnpackRGB((uint)c, out var r, out var g, out var b); - _game.Drawing.DrawCircle(new(x, y), rad, new Color(r, g, b), s); + _game.Drawing.DrawCircle(new(x, y), rad, new Color(r, g, b), t, s); return 0; }