summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklib.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/rocklib.c')
-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 506fc61..1560f19 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
#ifdef HAVE_LCD_COLOR
check_tablevalue(L, "lss_pattern", tablepos, &vp->lss_pattern, true);
check_tablevalue(L, "lse_pattern", tablepos, &vp->lse_pattern, true);
- check_tablevalue(L, "lst_pattern", tablepos, &vp->lse_pattern, true);
+ check_tablevalue(L, "lst_pattern", tablepos, &vp->lst_pattern, true);
#endif
#endif
@@ -243,7 +243,7 @@ RB_WRAP(set_viewport)
RB_WRAP(clear_viewport)
{
- int screen = luaL_optint(L, 2, SCREEN_MAIN);
+ int screen = luaL_optint(L, 1, SCREEN_MAIN);
rb->screens[screen]->clear_viewport();
return 0;
}