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.zip rockbox-df8233e4abbd0d626158abc5388957cc28b06c50.tar.gz rockbox-df8233e4abbd0d626158abc5388957cc28b06c50.tar.bz2 rockbox-df8233e4abbd0d626158abc5388957cc28b06c50.tar.xz | |
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 5114e7b..8ad5931 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_.+$', |