ref: fd782c7b42481d116fb70fe3e8ecf20c959b5f07
parent: ad7eb26727b2b1d82b0ac0706e93abe3729f378f
author: telephil9 <telephil9@gmail.com>
date: Mon Oct 26 05:53:41 EDT 2020
Fix string function to allow optional points (nil instead of a point)
--- a/draw.c
+++ b/draw.c
@@ -391,7 +391,7 @@
dst = checkimage(L, 1);
p = checkpoint(L, 2);
src = checkimage(L, 3);
- sp = checkpoint(L, 4);
+ sp = optpoint(L, 4);
f = checkfont(L, 5);
s = luaL_checkstring(L, 6);
len = luaL_checkinteger(L, 7);
@@ -433,7 +433,7 @@
dst = checkimage(L, 1);
p = checkpoint(L, 2);
src = checkimage(L, 3);
- sp = checkpoint(L, 4);
+ sp = optpoint(L, 4);
f = checkfont(L, 5);
s = luaL_checkstring(L, 6);
len = luaL_checkinteger(L, 7);