projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8444837
)
consistent height of a-eq a-hp/lp
author
Robin Gareus
<robin@gareus.org>
Thu, 14 Jul 2016 14:48:28 +0000
(16:48 +0200)
committer
Robin Gareus
<robin@gareus.org>
Thu, 14 Jul 2016 14:52:43 +0000
(16:52 +0200)
scripts/hplp.lua
patch
|
blob
|
history
diff --git
a/scripts/hplp.lua
b/scripts/hplp.lua
index a69fb615331b6ac41284235c89a05e45b16d837d..52597cb18b51d26db7920dba984d3562f2ee528e 100644
(file)
--- a/
scripts/hplp.lua
+++ b/
scripts/hplp.lua
@@
-228,7
+228,7
@@
function render_inline (ctx, w, max_h)
end
-- calc height of inline display
- local h =
math.ceil (w * 10 / 16) -- use 16:10 aspect
+ local h =
1 | math.ceil (w * 9 / 16) -- use 16:9 aspect, odd number of y pixels
if (h > max_h) then h = max_h end -- but at most max-height
-- ctx is a http://cairographics.org/ context