Commit 15c3a13d authored by Jonathan Wilkes's avatar Jonathan Wilkes

Merge branch 'fix-vu-meter'

parents 0226eaa5 6a636203
......@@ -2958,13 +2958,18 @@ function gui_vumeter_draw_peak(cid,tag,color,p1,p2,p3,p4,width,basex,basey) {
// probably should change tag from "rect" to "cover"
function gui_vumeter_update_rms(cid, tag, p1, p2, p3, p4, basex, basey) {
var rect = get_item(cid, tag + "rect");
configure_item(rect, {
x: p1 - basex,
y: p2 - basey,
width: p3 - p1,
height: p4 - p2 + 1
});
var rect;
if (patchwin[cid]) {
rect = get_item(cid, tag + "rect");
if (rect) {
configure_item(rect, {
x: p1 - basex,
y: p2 - basey,
width: p3 - p1,
height: p4 - p2 + 1
});
}
}
}
function gui_vumeter_update_peak(cid,tag,color,p1,p2,p3,p4,basex,basey) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment