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
This commit is contained in:
William Wilgus 2018-10-27 06:24:27 -04:00
parent 80352c2c2d
commit df8233e4ab
3 changed files with 303 additions and 101 deletions

View file

@ -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_.+$',