Commit c431abf4 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

guard against early updates to vu peak

parent b11cfeb6
...@@ -2941,14 +2941,19 @@ function gui_vumeter_update_rms(cid, tag, p1, p2, p3, p4, basex, basey) { ...@@ -2941,14 +2941,19 @@ function gui_vumeter_update_rms(cid, tag, p1, p2, p3, p4, basex, basey) {
} }
function gui_vumeter_update_peak(cid,tag,color,p1,p2,p3,p4,basex,basey) { function gui_vumeter_update_peak(cid,tag,color,p1,p2,p3,p4,basex,basey) {
var line = get_item(cid, tag + "peak"); var line;
configure_item(line, { if (patchwin[cid]) {
x1: p1 - basex, line = get_item(cid, tag + "peak");
y1: p2 - basey, if (line) {
x2: p3 - basex, configure_item(line, {
y2: p4 - basey, x1: p1 - basex,
stroke: color y1: p2 - basey,
}); x2: p3 - basex,
y2: p4 - basey,
stroke: color
});
}
}
} }
function gui_iemgui_base_color(cid, tag, color) { function gui_iemgui_base_color(cid, tag, color) {
......
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