From df8233e4abbd0d626158abc5388957cc28b06c50 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sat, 27 Oct 2018 06:24:27 -0400 Subject: Lua expand multiple screen support Some of the lcd functions had support for multiple screens but this wasn't very safe since the screen number wasn't bounded within the screens[] array This adds support for all the lcd functions along with checking that screen# is bounded properly, adds around 600 bytes to devices with a remote screen devices without a remote screen lock to SCREEN_MAIN Change-Id: I618bbc7b3919c7b0ff375fb2d71949d7cab43c87 --- apps/plugins/lua/rocklib_aux.pl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/plugins/lua/rocklib_aux.pl') diff --git a/apps/plugins/lua/rocklib_aux.pl b/apps/plugins/lua/rocklib_aux.pl index 5114e7b6f7..8ad59317d6 100755 --- a/apps/plugins/lua/rocklib_aux.pl +++ b/apps/plugins/lua/rocklib_aux.pl @@ -73,6 +73,14 @@ my @forbidden_functions = ('^open$', '^codec_', '^timer_', '^lcd_(mono_)?+bitmap', + '^lcd_(draw|fill|update_)rect$', + '^lcd_draw(line|pixel)$', + '^lcd_(h|v)line$', + '^lcd_(update|clear_display|set_drawmode)$', + '^lcd_setfont$', + '^lcd_(set|get)_(fore|back)ground$', + '^lcd_put(s|sxy|s_scroll)$', + '^lcd_scroll_stop$', '^__.+$', '^.+_(un)?cached$', '^audio_.+$', -- cgit v1.2.3