mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Fix some script icons for non-square buttons
This commit is contained in:
parent
7aaf212a9b
commit
cf8a808bd7
8 changed files with 14 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue