diff options
author | Robin Gareus <robin@gareus.org> | 2018-03-17 21:13:06 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-03-17 21:13:06 +0100 |
commit | 1231a0805aca0070f589fdc3cf7ef002bbfd381d (patch) | |
tree | ebc76c37742d4001914da8963e18292acb517ba6 /scripts/s_group_color.lua | |
parent | c2ed125b8ddf3ee684fa742eea6c3db1dc05ecc1 (diff) |
Remove calls to deprecated Lua bitlib
Diffstat (limited to 'scripts/s_group_color.lua')
-rw-r--r-- | scripts/s_group_color.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/s_group_color.lua b/scripts/s_group_color.lua index 1fd5321ef5..d8c0785ed7 100644 --- a/scripts/s_group_color.lua +++ b/scripts/s_group_color.lua @@ -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 |