summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-07-14 16:48:28 +0200
committerRobin Gareus <robin@gareus.org>2016-07-14 16:52:43 +0200
commit543e230f79379edba2d84211d18505536b71777f (patch)
tree2ff29db5b00620b9278665019c576c2940ad7fd2 /scripts
parent8444837b71d435b6354854d4500e2d092fff3c44 (diff)
consistent height of a-eq a-hp/lp
Diffstat (limited to 'scripts')
-rw-r--r--scripts/hplp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/hplp.lua b/scripts/hplp.lua
index a69fb61533..52597cb18b 100644
--- 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