use new Session API to deal with transport state
[ardour.git] / scripts / s_group_color.lua
index 1fd5321ef5f59dba0064cdb7576eb2d5eb6c8408..d8c0785ed7fa999fdc2e070d70e370259d45d76a 100644 (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