Add test synth to debug capture alignment
[ardour.git] / scripts / select_every_2nd_region.lua
index b05efc1a46c7635d1a96358b6cc7e1d6b3916244..30ad519483079a54dda44115c4f4775dd8ed1a18 100644 (file)
@@ -43,6 +43,7 @@ end end
 
 function icon (params) return function (ctx, width, height, fg)
        local wh = math.min (width, height) * .5
+       ctx:translate (math.floor (width * .5 - wh), math.floor (height * .5 - wh))
 
        ctx:set_line_width (1)
        ctx:rectangle (wh * .25, wh * .75, wh * 1.5 , .5 * wh)