summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/lua/include_lua/lcd.lua2
-rw-r--r--apps/plugins/lua/rocklua.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/lua/include_lua/lcd.lua b/apps/plugins/lua/include_lua/lcd.lua
index bbf0f240aa..e0a3c5895a 100644
--- a/apps/plugins/lua/include_lua/lcd.lua
+++ b/apps/plugins/lua/include_lua/lcd.lua
@@ -80,10 +80,10 @@ local _lcd = {} do
80 80
81 -- clears lcd, optional.. ([color, x1, y1, x2, y2, clip]) 81 -- clears lcd, optional.. ([color, x1, y1, x2, y2, clip])
82 local function clear(t, clr, ...) 82 local function clear(t, clr, ...)
83 rb.lcd_scroll_stop() --rb really doesn't like bg change while scroll
83 if clr == _NIL and ... == _NIL then 84 if clr == _NIL and ... == _NIL then
84 rb.lcd_clear_display() 85 rb.lcd_clear_display()
85 else 86 else
86 rb.lcd_scroll_stop() --rb really doesn't like bg change while scroll
87 _LCD:clear(clr, ...) 87 _LCD:clear(clr, ...)
88 end 88 end
89 end 89 end
diff --git a/apps/plugins/lua/rocklua.c b/apps/plugins/lua/rocklua.c
index 5539618a43..48b5d62c37 100644
--- a/apps/plugins/lua/rocklua.c
+++ b/apps/plugins/lua/rocklua.c
@@ -160,6 +160,7 @@ enum plugin_status plugin_start(const void* parameter)
160 rocklua_openlibs(L); 160 rocklua_openlibs(L);
161 status = luaL_loadfile(L, filename); 161 status = luaL_loadfile(L, filename);
162 if (!status) { 162 if (!status) {
163 rb->lcd_scroll_stop(); /* rb doesn't like bg change while scroll */
163 rb->lcd_clear_display(); 164 rb->lcd_clear_display();
164 status = docall(L); 165 status = docall(L);
165 } 166 }