Remove calls to deprecated Lua bitlib

This commit is contained in:
Robin Gareus
2018-03-17 21:13:06 +01:00
parent c2ed125b8d
commit 1231a0805a
3 changed files with 5 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ function factory () return function ()
local r = math.random (0, 255)
local g = math.random (0, 255)
local b = math.random (0, 255)
local rgba = bit32.lshift (r, 24) + bit32.lshift (g, 16) + bit32.lshift (b, 8) + 0xff
local rgba = (r << 24) + (g << 16) + (b << 8) + 0xff
grp:set_rgba(rgba)
end
end end