summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-07-08 11:59:05 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-07-08 11:59:05 +0000
commit59c4b6816bd41c8d0362ad9e6bbd7b10e648c4fc (patch)
treed539285560d846baf9eae21196c1295773771264
parenta567d8228cdf69ba18d447004468a3f63cdca62f (diff)
downloadrockbox-59c4b6816bd41c8d0362ad9e6bbd7b10e648c4fc.tar.gz
rockbox-59c4b6816bd41c8d0362ad9e6bbd7b10e648c4fc.tar.bz2
rockbox-59c4b6816bd41c8d0362ad9e6bbd7b10e648c4fc.zip
Lua: expose SCREEN_MAIN & SCREEN_REMOTE (for rb.lcd_*() functions)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21712 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/lua/rocklib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c
index b8d6eeb964..d6159e0ad3 100644
--- a/apps/plugins/lua/rocklib.c
+++ b/apps/plugins/lua/rocklib.c
@@ -596,6 +596,11 @@ LUALIB_API int luaopen_rock(lua_State *L)
RB_CONSTANT(TOUCHSCREEN_BUTTON);
#endif
+ RB_CONSTANT(SCREEN_MAIN);
+#ifdef HAVE_REMOTE_LCD
+ RB_CONSTANT(SCREEN_REMOTE);
+#endif
+
rli_init(L);
return 1;