diff options
author | William Wilgus <me.theuser@yahoo.com> | 2018-10-27 06:24:27 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2018-10-30 04:16:23 +0100 |
commit | df8233e4abbd0d626158abc5388957cc28b06c50 (patch) | |
tree | 3b6c151b8dba5201673dd8ae2842350822243cde /apps/plugins/lua/rocklib_aux.pl | |
parent | 80352c2c2d7ff005e0ad63e1b56d1f6ff9af81d8 (diff) | |
download | rockbox-df8233e4abbd0d626158abc5388957cc28b06c50.tar.gz rockbox-df8233e4abbd0d626158abc5388957cc28b06c50.zip |
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
Diffstat (limited to 'apps/plugins/lua/rocklib_aux.pl')
-rwxr-xr-x | apps/plugins/lua/rocklib_aux.pl | 8 |
1 files changed, 8 insertions, 0 deletions
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$', | |||
73 | '^codec_', | 73 | '^codec_', |
74 | '^timer_', | 74 | '^timer_', |
75 | '^lcd_(mono_)?+bitmap', | 75 | '^lcd_(mono_)?+bitmap', |
76 | '^lcd_(draw|fill|update_)rect$', | ||
77 | '^lcd_draw(line|pixel)$', | ||
78 | '^lcd_(h|v)line$', | ||
79 | '^lcd_(update|clear_display|set_drawmode)$', | ||
80 | '^lcd_setfont$', | ||
81 | '^lcd_(set|get)_(fore|back)ground$', | ||
82 | '^lcd_put(s|sxy|s_scroll)$', | ||
83 | '^lcd_scroll_stop$', | ||
76 | '^__.+$', | 84 | '^__.+$', |
77 | '^.+_(un)?cached$', | 85 | '^.+_(un)?cached$', |
78 | '^audio_.+$', | 86 | '^audio_.+$', |