diff options
Diffstat (limited to 'apps/plugins/lua')
-rw-r--r-- | apps/plugins/lua/rocklib.c | 4 |
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 | ||
244 | RB_WRAP(clear_viewport) | 244 | RB_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 | } |