summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/include_lua
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/include_lua')
-rw-r--r--apps/plugins/lua/include_lua/color.lua4
-rw-r--r--apps/plugins/lua/include_lua/draw.lua4
-rw-r--r--apps/plugins/lua/include_lua/lcd.lua10
-rw-r--r--apps/plugins/lua/include_lua/print.lua2
4 files changed, 5 insertions, 15 deletions
diff --git a/apps/plugins/lua/include_lua/color.lua b/apps/plugins/lua/include_lua/color.lua
index fd321ed..7266c09 100644
--- a/apps/plugins/lua/include_lua/color.lua
+++ b/apps/plugins/lua/include_lua/color.lua
@@ -44,7 +44,7 @@ local _clr = {} do
local _NIL = nil -- _NIL placeholder
local maxstate = (bit.lshift(1, rb.LCD_DEPTH) - 1)
-
+
if rb.LCD_DEPTH > 24 then -- no alpha channels
maxstate = (bit.lshift(1, 24) - 1)
end
@@ -89,7 +89,7 @@ local _clr = {} do
r, g, b = (r or 0), (g or 0), (b or 0)
ru = ru + r; gu = gu + g; bu = bu + b
else
- ru = ru + inc; gu = gu + inc; bu = bu + inc
+ ru = ru + inc; gu = gu + inc; bu = bu + inc
end
color = rb.lcd_rgbpack(ru, gu, bu)
diff --git a/apps/plugins/lua/include_lua/draw.lua b/apps/plugins/lua/include_lua/draw.lua
index 7b23933..7bf71f0 100644
--- a/apps/plugins/lua/include_lua/draw.lua
+++ b/apps/plugins/lua/include_lua/draw.lua
@@ -268,13 +268,13 @@ local _draw = {} do
if targetclr == _get(img, x, y, true) then -- north
qtail = qtail + 2
qpt[qtail - 1] = x
- qpt[qtail] = y
+ qpt[qtail] = y
end
y = y + 2
if targetclr == _get(img, x, y, true) then -- south
qtail = qtail + 2
qpt[qtail - 1] = x
- qpt[qtail] = y
+ qpt[qtail] = y
end
return fillclr
end
diff --git a/apps/plugins/lua/include_lua/lcd.lua b/apps/plugins/lua/include_lua/lcd.lua
index f4bb0db..726ba9b 100644
--- a/apps/plugins/lua/include_lua/lcd.lua
+++ b/apps/plugins/lua/include_lua/lcd.lua
@@ -132,16 +132,6 @@ local _lcd = {} do
end
--expose functions to the outside through _lcd table
---[[
- _lcd.text_extent = text_extent
- _lcd.set_viewport = set_viewport
- _lcd.duplicate = duplicate
- _lcd.update = _update
- _lcd.update_rect = update_rect
- _lcd.clear = clear
- _lcd.splashf = splashf
- _lcd.image = image
-]]
_lcd.update = rb.lcd_update
_lcd.DEPTH = rb.LCD_DEPTH
_lcd.W = rb.LCD_WIDTH
diff --git a/apps/plugins/lua/include_lua/print.lua b/apps/plugins/lua/include_lua/print.lua
index 3a11e7c..87fd11d 100644
--- a/apps/plugins/lua/include_lua/print.lua
+++ b/apps/plugins/lua/include_lua/print.lua
@@ -152,7 +152,7 @@ local _print = {} do
-- if bByRef is _NIL or false then a copy is returned
local function get_settings(bByRef)
_p_opts = _p_opts or set_defaults()
- if not bByRef then
+ if not bByRef then
-- shallow copy of table
local copy = {}
for k, v in pairs(_p_opts) do