From 31386db6815c1fd20fe20d12bfd77146c79c1696 Mon Sep 17 00:00:00 2001 From: sup39 Date: Tue, 1 Mar 2022 19:40:19 +0900 Subject: [PATCH] hotfix2 mark drawRect#stroke as optional --- stdlib-sup39/draw-lite.sun | 2 +- stdlib-sup39/draw.sun | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/stdlib-sup39/draw-lite.sun b/stdlib-sup39/draw-lite.sun index 0cde7f5..596b783 100644 --- a/stdlib-sup39/draw-lite.sun +++ b/stdlib-sup39/draw-lite.sun @@ -1,2 +1,2 @@ builtin drawText(x, y, fontSize, colorTop, colorBot, fmt, ...); -builtin drawRect(fill, stroke, x0, y0, x1, y1); +builtin drawRect(fill, x0, y0, x1, y1); diff --git a/stdlib-sup39/draw.sun b/stdlib-sup39/draw.sun index d98c429..ba8986e 100644 --- a/stdlib-sup39/draw.sun +++ b/stdlib-sup39/draw.sun @@ -13,8 +13,9 @@ builtin setMTX(dst, ...); var const MTX_LOADIMM = 0; var const MTX_NEW = 0; +// drawRect(fill, x0, y0, x1, y1) // drawRect(fill, stroke, x0, y0, x1, y1, resetMtx=true) -builtin drawRect(fill, stroke, x0, y0, x1, y1, ...); +builtin drawRect(fill, x0, y0, x1, y1, ...); var const FILL_NONE = 0; var const STROKE_NONE = 0;