summaryrefslogtreecommitdiff
path: root/apps/plugins/lua
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-05-25 14:56:59 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-05-25 14:56:59 +0000
commit7b160108386df911dafcea71b35764c046435fff (patch)
tree7b387920a313b2c7a4ec9865d7cd11a52c0b211b /apps/plugins/lua
parent06ba3cceec94e8bed4ebd4bb52a949a2fbff50df (diff)
downloadrockbox-7b160108386df911dafcea71b35764c046435fff.tar.gz
rockbox-7b160108386df911dafcea71b35764c046435fff.zip
Fix some typos
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21077 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lua')
-rw-r--r--apps/plugins/lua/rocklib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c
index 506fc6163d..1560f19d9e 100644
--- a/apps/plugins/lua/rocklib.c
+++ b/apps/plugins/lua/rocklib.c
@@ -226,7 +226,7 @@ static struct viewport* opt_viewport(lua_State *L, int narg, struct viewport* al
226#ifdef HAVE_LCD_COLOR 226#ifdef HAVE_LCD_COLOR
227 check_tablevalue(L, "lss_pattern", tablepos, &vp->lss_pattern, true); 227 check_tablevalue(L, "lss_pattern", tablepos, &vp->lss_pattern, true);
228 check_tablevalue(L, "lse_pattern", tablepos, &vp->lse_pattern, true); 228 check_tablevalue(L, "lse_pattern", tablepos, &vp->lse_pattern, true);
229 check_tablevalue(L, "lst_pattern", tablepos, &vp->lse_pattern, true); 229 check_tablevalue(L, "lst_pattern", tablepos, &vp->lst_pattern, true);
230#endif 230#endif
231#endif 231#endif
232 232
@@ -243,7 +243,7 @@ RB_WRAP(set_viewport)
243 243
244RB_WRAP(clear_viewport) 244RB_WRAP(clear_viewport)
245{ 245{
246 int screen = luaL_optint(L, 2, SCREEN_MAIN); 246 int screen = luaL_optint(L, 1, SCREEN_MAIN);
247 rb->screens[screen]->clear_viewport(); 247 rb->screens[screen]->clear_viewport();
248 return 0; 248 return 0;
249} 249}