commit 206713f47dcd601db44443ccea5d6ed44c5773cf
Author: Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Tue Dec 23 17:54:53 2025 -0700
Commit: Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Tue Dec 23 17:54:53 2025 -0700
fix rrect and rrectfill not getting passed to sandbox
---
source/p8GlobalLuaFunctions.h | 2 +-
source/vm.cpp | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/source/p8GlobalLuaFunctions.h b/source/p8GlobalLuaFunctions.h
index aedfa4f..ca875db 100644
--- a/source/p8GlobalLuaFunctions.h
+++ b/source/p8GlobalLuaFunctions.h
@@ -419,7 +419,7 @@ local picofuncnames = {
poke = 1, poke2 = 1, poke4 = 1, memcpy = 1, memset = 1, stat = 1, printh = 1, extcmd = 1,
_update_buttons = 1, btn = 1, btnp = 1, cursor = 1, camera = 1, circ = 1, circfill = 1,
clip = 1, cls = 1, color = 1, fillp = 1, fget = 1, fset = 1, line = 1, map = 1, mget = 1,
- mset = 1, oval = 1, ovalfill = 1, pal = 1, palt = 1, pget = 1, pset = 1, rect = 1, rectfill = 1,
+ mset = 1, oval = 1, ovalfill = 1, pal = 1, palt = 1, pget = 1, pset = 1, rect = 1, rectfill = 1, rrect = 1, rrectfill = 1,
serial = 1, sget = 1, sset = 1, spr = 1, sspr = 1, music = 1, sfx = 1, time = 1, tline = 1,
cocreate = 1, coresume = 1, costatus = 1, yield = 1, trace = 1, stop = 1,
count = 1, add = 1, sub = 1, foreach = 1, all = 1, del = 1, deli = 1, t = 1, dget = 1,
diff --git a/source/vm.cpp b/source/vm.cpp
index d91194c..91da4f1 100644
--- a/source/vm.cpp
+++ b/source/vm.cpp
@@ -80,6 +80,8 @@ bool _initializeLuaState(lua_State* luaState) {
lua_register(luaState, "ovalfill", ovalfill);
lua_register(luaState, "rect", rect);
lua_register(luaState, "rectfill", rectfill);
+ lua_register(luaState, "rrect", rrect);
+ lua_register(luaState, "rrectfill", rrectfill);
lua_register(luaState, "print", print);
lua_register(luaState, "cursor", cursor);
lua_register(luaState, "spr", spr);