summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-07-06 04:05:46 +0200
committerRobin Gareus <robin@gareus.org>2016-07-06 04:05:46 +0200
commit8d360e86281ba287762b0a73dd63e0af00a3bc9d (patch)
tree24ea33e65c30bf7e357c80f35ab4eac0a4cbef02 /scripts
parenta2f249d1d7a14498f9b1c0b46f89be4a7e611c37 (diff)
fix a-High/LowPass transfer-fn display visual bleed
Diffstat (limited to 'scripts')
-rw-r--r--scripts/hplp.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/hplp.lua b/scripts/hplp.lua
index 3b2459ae32..a69fb61533 100644
--- a/scripts/hplp.lua
+++ b/scripts/hplp.lua
@@ -187,7 +187,7 @@ end
function db_to_y (db, h)
-- y-axis gain mapping
- if db < -48 then db = -48 end
+ if db < -60 then db = -60 end
if db > 12 then db = 12 end
return -.5 + round (0.2 * h) - h * db / 60
end
@@ -238,6 +238,8 @@ function render_inline (ctx, w, max_h)
ctx:rectangle (0, 0, w, h)
ctx:set_source_rgba (.2, .2, .2, 1.0)
ctx:fill ()
+ ctx:rectangle (0, 0, w, h)
+ ctx:clip ();
-- set line width: 1px
-- Note: a cairo pixel at [1,1] spans [0.5->1.5 , 0.5->1.5]