···4444 local _NIL = nil -- _NIL placeholder
45454646 local maxstate = (bit.lshift(1, rb.LCD_DEPTH) - 1)
4747-4747+4848 if rb.LCD_DEPTH > 24 then -- no alpha channels
4949 maxstate = (bit.lshift(1, 24) - 1)
5050 end
···8989 r, g, b = (r or 0), (g or 0), (b or 0)
9090 ru = ru + r; gu = gu + g; bu = bu + b
9191 else
9292- ru = ru + inc; gu = gu + inc; bu = bu + inc
9292+ ru = ru + inc; gu = gu + inc; bu = bu + inc
9393 end
94949595 color = rb.lcd_rgbpack(ru, gu, bu)
+2-2
apps/plugins/lua/include_lua/draw.lua
···268268 if targetclr == _get(img, x, y, true) then -- north
269269 qtail = qtail + 2
270270 qpt[qtail - 1] = x
271271- qpt[qtail] = y
271271+ qpt[qtail] = y
272272 end
273273 y = y + 2
274274 if targetclr == _get(img, x, y, true) then -- south
275275 qtail = qtail + 2
276276 qpt[qtail - 1] = x
277277- qpt[qtail] = y
277277+ qpt[qtail] = y
278278 end
279279 return fillclr
280280 end
···152152 -- if bByRef is _NIL or false then a copy is returned
153153 local function get_settings(bByRef)
154154 _p_opts = _p_opts or set_defaults()
155155- if not bByRef then
155155+ if not bByRef then
156156 -- shallow copy of table
157157 local copy = {}
158158 for k, v in pairs(_p_opts) do