diff options
Diffstat (limited to 'apps/plugins/lua/include_lua/color.lua')
-rw-r--r-- | apps/plugins/lua/include_lua/color.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/lua/include_lua/color.lua b/apps/plugins/lua/include_lua/color.lua index fd321edd9d..7266c090f3 100644 --- a/apps/plugins/lua/include_lua/color.lua +++ b/apps/plugins/lua/include_lua/color.lua | |||
@@ -44,7 +44,7 @@ local _clr = {} do | |||
44 | local _NIL = nil -- _NIL placeholder | 44 | local _NIL = nil -- _NIL placeholder |
45 | 45 | ||
46 | local maxstate = (bit.lshift(1, rb.LCD_DEPTH) - 1) | 46 | local maxstate = (bit.lshift(1, rb.LCD_DEPTH) - 1) |
47 | 47 | ||
48 | if rb.LCD_DEPTH > 24 then -- no alpha channels | 48 | if rb.LCD_DEPTH > 24 then -- no alpha channels |
49 | maxstate = (bit.lshift(1, 24) - 1) | 49 | maxstate = (bit.lshift(1, 24) - 1) |
50 | end | 50 | end |
@@ -89,7 +89,7 @@ local _clr = {} do | |||
89 | r, g, b = (r or 0), (g or 0), (b or 0) | 89 | r, g, b = (r or 0), (g or 0), (b or 0) |
90 | ru = ru + r; gu = gu + g; bu = bu + b | 90 | ru = ru + r; gu = gu + g; bu = bu + b |
91 | else | 91 | else |
92 | ru = ru + inc; gu = gu + inc; bu = bu + inc | 92 | ru = ru + inc; gu = gu + inc; bu = bu + inc |
93 | end | 93 | end |
94 | 94 | ||
95 | color = rb.lcd_rgbpack(ru, gu, bu) | 95 | color = rb.lcd_rgbpack(ru, gu, bu) |